Angular Features | Less known but interesting to use

Angular very important features by they are less know by the world. So this article can help others to know those features and use.

Let’s see some of them which we could start using -

1. Template interpolation

2. @Attribute Decorator

3. APP_BOOTSTRAP_LISTENER

@NgModule({
providers: [
MyService,
{provide: APP_BOOTSTRAP_LISTENER, multi: true,
useFactory: (myService) =>
(componentRef:ComponentRef) => myService.rootComponent = componentRef
deps: [MyService]
}
],
...
})
export class AppModule {}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Suneet Bansal

Suneet Bansal

Technical Writer | Editor | Coder | Active Stackoveflow contributor | Love to learn More | Email — bansal.suneet@gmail.com