Angular University 🅰️ (@angularuniv) 's Twitter Profile
Angular University 🅰️

@angularuniv

High-quality Angular Courses. Learn and keep up with the Angular Ecosystem. Helpdesk: [email protected]

ID: 712271636305674240

linkhttps://angular-university.io calendar_today22-03-2016 13:36:06

7,7K Tweet

7,7K Followers

1,1K Following

Angular University 🅰️ (@angularuniv) 's Twitter Profile Photo

Swap traditional decorators like @ViewChild with new functions: Instead of: @ViewChild('title') title!: ElementRef; ngAfterViewInit() { console.log(this.title.nativeElement); } Use: title = viewChild<ElementRef>('title'); effect(() =>

Swap traditional decorators like @ViewChild with new functions:

Instead of:

@ViewChild('title') title!: ElementRef;
ngAfterViewInit() { console.log(this.title.nativeElement); }

Use:

title = viewChild&lt;ElementRef&gt;('title');
effect(() =&gt;