samedi 10 décembre 2016

my check box is not selected any box in angularjs

* here is html code for checkbox am using checkbox for dynamic value initiazation from databases but checkbox are not selecting any value*

                <div  class="widget-body" style="display: block;">
                        <div class="widget-main">
                                <div class="table-responsive">
                                <table class="table">

                                <thead>
                                <tr>
                                <th>item</th>
                                <th>received</th>
                                    </tr>
                                </thead>

                    <tbody ng-repeat="emp in nodueaccountassets">      
        <tr>
<td></td>  <td> <input type="checkbox"  ng-model="emp.selected" value=""/></td>

                             </tr>
                        </tbody>
                     </table>
                    </div>
                </div>
            </div> 

and js controller code is

     angular.forEach($scope.nodueaccountassets,function(emp){
        if (emp.selected) $scope.albumNameArray.push(emp.name);

          alert(emp.selected);




Aucun commentaire:

Enregistrer un commentaire