<img [src]="ImageUrl">
<button (click)="onUpdate($event)">Save</button>
<input [(ngModel)]="name">
<button [attr.aria-label]="help">help</button>
<span [class.specialClass]="isSpecialClass">Special class</span>
<button [style.color]="isSpecialClass ? 'blue' : 'black'">Click Me</button>
What is Angular DSL?
A domain-specific language (DSL) is a computer language specialized to a particular application domain. Angular has its own Domain Specific Language (DSL) which allows us to write Angular specific html-like syntax on top of normal html. It has its own compiler that compiles this syntax to html that the browser can understand. This DSL is defined in NgModules such as animations, forms, and routing and navigation.
Basically you will see 3 main syntax in Angular DSL.
(): Used for Output and DOM events.
[]: Used for Input and specific DOM element attributes.
*: Structural directives(*ngFor or *ngIf) will affect/change the DOM structure.