Is it possible to bind a JSON object to a radio input in Angular2?
I have a JSON object named object
and I tried
<input type="radio" [(ngModel)]="selectedObject" [ngValue]="object">
but it gives ngValue is not a known property of input
error. I also tried
<input type="radio" [(ngModel)]="selectedObject" value="{{object}}">
But then selectedObject
becomes [object Object]
.