Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Use Decorator to Beat ngOnChanges - Decoupling ngOnChanges

ng-conf via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Discover a powerful technique to simplify property change detection in Angular components during this 18-minute ng-conf talk. Learn how to leverage TypeScript property decorators as an alternative to the traditional ngOnChanges method, resulting in cleaner, more readable code. Explore the implementation of a custom content decorator, understand its advantages over getters and setters, and gain insights into decoupling ngOnChanges for improved component design. Delve into practical examples and best practices for subscribing to property changes efficiently in Angular applications.

Syllabus

Intro
ngOnChanges
Getter and Setter
Content decorator
Additional notes

Taught by

ng-conf

Reviews

Start your review of Use Decorator to Beat ngOnChanges - Decoupling ngOnChanges

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.