search

Home  >  Q&A  >  body text

angular.js - How to listen to a single event in a tag using the ng-repeat attribute so that it can change CSS individually.

phpcn_u1582phpcn_u15822860 days ago556

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-05-15 17:01:36

    ng-click="note.bigger=true" ng-class="{ bigger : note.bigger }"
    
    
    

    http://stackoverflow.com/a/22685918/2586541

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-15 17:01:36

    <textarea ng-class="{handsome: note.clicked}" ng-click="note.clicked=true" ng-repeat="note in notes"></textarea>

    reply
    0
  • Cancelreply