Angular2 – Radio Button Binding

use [value]=”1″ instead of value=”1″

<input name="options" ng-control="options" type="radio" [value]="1"  [(ngModel)]="model.options" ><br/>

<input name="options" ng-control="options" type="radio" [value]="2" [(ngModel)]="model.options" ><br/>

Edit:

As suggested by thllbrg “For angular 2.1+ use [(ngModel)] instead of [(ng-model)]

Leave a Comment