Functions
[Link]
[Link]
<div *ngIf=“condition”> </div>
product.is_in_inventory bool value
[ngStyle]="{fontWeight:'bold', color: product.is_in_inventory ? 'Green' : 'Red' }"
[ngClass]="{'btn':true, 'btn--search':searchTxt,'btn--search--disabled':!searchTxt}"
Parent component
Child Component
Initialize
DOM change event happened
DOM event happened with out change
Custom Attribute Directory
Angular
*ngIf Behind the seen angular create a <ng-template [ngIf]>
Service
[Link]
Now its inject as the module injection
No need to inject inside the components