What are Template statements?

Template statements are properties or methods used in HTML for responding to user events. With these template statements, the application that you create or are working on, can have the capability to engage users through actions such as submitting forms and displaying dynamic content.

For example, 

<button (click)=”deleteHero()”>Delete hero</button>

The template here is deleteHero. The method is called when the user clicks on the button.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *