I want to be able to select only one checkbox and when select that checkbox to take that value in function in controller.
Controller
$foldersArray = [Folder 1 , Folder 2, Folder 3....];
$selectedFolderName = function(){
var folderName = 'folder name '
}
View
<div class="checkbox">
<ui>
<li ng-repeat="folder in foldersArray">
<label><input type="checkbox" ng-checked="folder" ng-click=selectedFolderName()"/>{{folder}}</label>
</li>
</ui>
</div>
Aucun commentaire:
Enregistrer un commentaire