Hi all I am new to angularjs could anybody help me please? All what I need when I click a button the first checkbox in ng-repeat list to be checked. Am I doing anything wrong? Here is my code:
- Checkbox
-
Button New Dish
-
Function scope.onNewDishClick = function (showNewDIshMessage) { scope.dishTypes[0].dishType = true; }
Aucun commentaire:
Enregistrer un commentaire