I am just reading and learning Angular2 tutorial. Here it says "Defining a name attribute is a requirement when using [(ngModel)] in combination with a form." However, in the tutorial, it is using ngmodel without a name attribute here.
<input [(ngModel)]="selectedHero.name" placeholder="name"/>
Could you please explain why this is working? Please note : I am new to angular as well as UI