Radio button group validation inside angular ng-repeat

I trying to implement radio button group validation inside angular ng-repeat. Html looks like below,

<div ng-repeat="driver in drivers">   <input required type="radio" value="M" name="driverGender" ng-model="driver.gender">   <input required type="radio" value="F" name="driverGender" ng-model="driver.gender"> </div> 

Name attribute should change in each repeat. I tried appending $index value, but not working properly when drivers are dynamically added and removed. What is the best way to implement this


Category: angularjs Time: 2016-07-29 Views: 0
Tags: angularjs

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.134 (s). 12 q(s)