[(ngModel)]="selectedHero.name"



this is an example on how you can use ngModel in angular 2, i am using typescript so this is the new way to use ngModel on es2015 style angular.
<input [(ngModel)]="StringName" />
you entered: {{StringName}}


the old way was:
data-ng-model="answerCheck[0]"