html - Angular2- Object as Radio Input Value -


is possible bind json object radio input in angular2?

i have json object named object , tried

<input type="radio" [(ngmodel)]="selectedobject" [ngvalue]="object"> 

but gives ngvalue not known property of input error. tried

<input type="radio" [(ngmodel)]="selectedobject" value="{{object}}"> 

but selectedobject becomes [object object].

i wrote code in angular 1, without testing converted angular 2 you

<span *ngfor="let list in object.lists">     <input type="radio" name="{{list.id}}" value="{{list.value}}"> </span> 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -