mercredi 6 septembre 2017

First checkbox should be checked in ng-repeat if button clicked

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:

  1. Checkbox
Dish Categories   -1">
  1. Button New Dish

  2. Function scope.onNewDishClick = function (showNewDIshMessage) { scope.dishTypes[0].dishType = true; }

Aucun commentaire:

Enregistrer un commentaire