dimanche 19 avril 2015

About AngularJS Toggle


Vote count:

0




I am new AngularJS ,I use jquery create some HTML element , But when I click on one of these numbers, TOGGLE unable action But I will have an individual, you can action I checked the web page code, the code generated for him



<div class="colNumber">
<div class="Ball" ng-class="{'Ball':!isActive" ,'ball active':isactive}
ng-init="isActive=false"
ng-click="isActive=!isActive" id="Ball49">49</div></div>


I do not know where the problem occurred, I hope you give me help Maybe I should use angularjs directive, if it is like this want to give me some advice Heartfelt thanks



<div ng-app="app" ng-controller="MyCtrl1">
<div id="hktable" class="numberBorder"></div>
<hr />
<div class="colNumber">
<div class="Ball"
ng-class="{'Ball':!isActive,'Ball active':isactive}"
ng-init="isActive=false" ng-click="isActive=!isActive"
id="Ball99">99</div>
</div>
</div>


here is my code



asked 1 min ago







About AngularJS Toggle

Aucun commentaire:

Enregistrer un commentaire