Use decorator to beat ngOnChanges – Decoupling ngOnChanges | Kern Zhao

preview_player
Показать описание
By using a TypeScript property decorator directly on a property of a component, it’s much easier/cleaner/more-readable to subscribe to property change than the traditional painful ngOnChanges. Details on:

ng-conf is a three-day Angular conference focused on delivering the highest quality training in the Angular JavaScript framework. 1500+ developers from across the globe converge on Salt Lake City, UT every year to attend talks and workshops by the Angular team and community experts.

Рекомендации по теме