Sub-Classing NgForOf In Order To Make It A "Pure" Directive In Angular 7.2.13

added by JavaScript Kicks
4/29/2019 12:00:23 AM

618 Views

Ben Nadel demonstrates how to sub-class the native NgForOf directive in Angular 7.2.13, creating a "pure" version of the directive - NgPureForOf - that only applies change-detection when its input bindings have been changed. This adds a micro-optimization on top of the already efficient NgForOf directive.


0 comments