The two-way banana-in-the-box model binding is a special case, but Angular has a few standard ways to bind common things:
- [disabled]="disabledState": Any attribute can be bound with square brackets.
- (click)="buttonClick(album)": Events are bound with parenthesis.
- #form1="ngForm": Element name bindings
- *ngXX: Directives like *ngIf and *ngFor
- {{album.title}}: Inline expression bindings
https://www.codemag.com/Article/1705091/Building-an-Angular-Front-End-for-an-ASP.NET-Web-API#:~:text=Creating%20a%20New%20Angular%20Project&text=I%20recommend%20that%20you%20set,project%20for%20the%20Angular%20project.
ReplyDeleterefer above link and try it