您的位置:首页技术文章
文章详情页

angular.js - 怎样在使用ng-repeat属性的标签里面监听单个事件,使其能够单个改变CSS。

【字号: 日期:2024-03-17 13:23:55浏览:92作者:猪猪

问题描述

angular.js - 怎样在使用ng-repeat属性的标签里面监听单个事件,使其能够单个改变CSS。

angular.js - 怎样在使用ng-repeat属性的标签里面监听单个事件,使其能够单个改变CSS。

问题解答

回答1:

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

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

回答2:

<textarea ng- ng-click='note.clicked=true' ng-repeat='note in notes'></textarea>

标签: CSS