Angular 15 Top Features
Angular version 15 is out and it brings plenty of new functionalities along with more stability and rifeness. Google has brought already many changes with Angular 14 but mostly with beta taste. But with newer version they stabilized pretty many things. The team refactored old compiler which enables more performant developer experience.
1. Standalone APIs became stable feature allowing to bootstrap application with only one component which also leads to avoiding usage of NgModules.
2. Directive Composition API helps reusing code by adding directives to host element. This feature also works only with standalone directives.
In the code snippet above we enhance MatMenu
with two directives: HasColor
and CdkMenu
. MatMenu
reuses all the inputs, outputs, and associated logic with HasColor
and only the logic and the selected inputs from…