Hi I am new to Angularjs2.
How can I set checked value from I get the value from json.
<div class="form-row">
<div class="formHeading">Gender *</div>
<input #male name="gender" type="radio" [value]="Male"
ngControl="gender" (click)="gender= male.value"
[(ngModel)]="profile.gender"/>
Male
<input #female name="gender" type="radio" [value]="Female"
ngControl="gender" (click)="gender= female.value"
[(ngModel)]="profile.gender"/>
Female
<control-messages control="gender"></control-messages>
</div>
In My json file I set,
[{
"gender": "Female"
}]
Anyone plz.. Help me
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.