HTML5 input syntax

I followed the Angular2 tutorial https://angular.io/docs/ts/latest/tutorial/toh-pt6.html and found the following input element syntax (in the "Add a hero" section) header:

<input #heroName />

This is supposed to be an attribute of an idelement input, but I could not find this syntax in the HTML5 specification ( https://www.w3.org/TR/html5/syntax.html#attributes-0 ).

Can anyone explain this syntax?

+4
source share
1 answer

This does not apply to the html5 element id. It is strictly associated with angular2 and is a template reference variable .

, ,

hash (#) "phone" , .

"", " ".

+4

Source: https://habr.com/ru/post/1658892/


All Articles