Test Label for work with Angular
Here Label works as it should in Angular ng-repeat. In my work project for some reason click on label doesn't check related input.
by AntowaKartowa
HTML
<div ng-app="myApp">
<ul ng-controller="ListController">
<li ng-repeat="item in items">
<input type="radio" name="someShit_{{$id}}" id="id_{{$id}}" ng-value="item $id"/>
<label for="id_01">{{item.label}}_{{item.no}}</label>
</li>
</ul>
</div>
JavaScript
var myApp = angular.module('myApp', []);
myApp.controller("ListController", function ($scope) {
$scope.items = [{
no: 1,
label: "News"
}, {
no: 2,
label: "Services"
}, {
no: 3,
label: "Products"
}];
});