Back to Browse

Angular best practice - OnPush on all components

229 views
Nov 3, 2023
4:10

Angular best practice tip: - set the changeDetection strategy on all your components to OnPush - angular.json change the schema for generating component to add OnPush - Add lint rule for checking OnPush on all components - Make your CI run lint Full source code is here: https://www.academeez.com/courses/angular/best-practice/onpush #angular Chapters: 0:00 Recommendation - set all components to OnPush 0:34 Config angular.json angular cli can generate OnPush 1:30 Eslint OnPush rule 3:10 Configure CI to run lint

Download

0 formats

No download links available.

Angular best practice - OnPush on all components | NatokHD