Console.log for an html file? #Angular has JsonPipe for that. It converts a value into its JSON-format representation so that it can be displayed in the template. Do you use it for some other use cases?
#100daysofdocumentationangular.dev/api/common/JsonP…
Do you already optimize images in your #Angular app? You can use IMAGE_CONFIG and ImageConfig (breakpoints, placeholderResolution, disableImageSizeWarning, disableImageLazyLoadWarning) for that.
#100DaysOfDocumentationangular.dev/api/common/IMAGE…
Do you know what EEEE in the date format stands for?
.
.
.
.
.
It's a weekday! With 'fullDate' in your #Angular DatePipe you can have your date as 'EEEE, MMMM d, y', i.e. Monday, June 15, 2015
#100daysofdocumentationangular.dev/api/common/DateP…
#Angular async pipes are great! Not only do they automatically handle async data, but also when the reference of the expression changes, they automatically unsubscribe from the old Observable or Promise and subscribe to the new one.
#100DaysOfDocumentationangular.dev/api/common/Async…
You can use APP_BASE_HREF in your #angular app to specify the base href at the run time. In my current project we use it to adjust the path like <variable-part>/my-app. Do you use it? What is your use case?
#100daysofdocumentationangular.dev/api/common/APP_B…
No more subscription to ParamMap, no more ActivatedRoute. You can enable binding information from the #Angular Router state directly to the inputs of the component in Routeconfigurations and get the data via @Input()
#100DaysOfDocumentationangular.dev/api/router/withC…
You can (but should not!) inject your ROUTES directly in your #Angular app.
It is recommended to use higher level APIs such as RouterModule.forRoot(),provideRouter, or Router.resetConfig()
#100DaysOfDocumentationangular.dev/api/router/ROUTE…
Did you know that you can react upon event in #Angular router-outlet?
<router-outlet (activate)='onActivate($event)' (deactivate)='onDeactivate($event)' (attach)='onAttach($event)' (detach)='onDetach($event)'></router-outlet>
#100DaysOfDocumentationangular.dev/api/router/Route…
#Angular RouterLinkActive can do so much more! For example, the following checks the activated status without assigning any CSS classes:
<a routerLink="/user/bob" routerLinkActive #rla="routerLinkActive"> Bob {{ rla.isActive ? '(already open)' : ''}}</a>
#100DaysOfDocumentation