Syntax error Not able to get the value of radio select setting dynamically in AngularJS

Not able to get the value of radio select setting dynamically in AngularJS



To get the value of radio select, add [$index] to each ng-model like the following:

<td><input type = "radio" ng-model = "classes.satisfies[$index]" value = "Country1"> India</td>
<td><input type = "radio" ng-model = "classes.satisfies[$index]" value = "Country 2"> US</td>

The above would give you the result dynamically in AngularJS.

Updated on: 2020-01-29T06:34:33+05:30

209 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements