Angularjs笔记(三)
angular事件指令和指令
ng-click/dblclick ng-mousedown/up ng-mouseenter/leave ng-mousemove/over/out ng-keydown/up/press ng-focus/blur ng-submit ng-selected //选中触发 ng-change //改变触发 ng-copy //复制触发 ng-cut //剪切触发 ng-paste //粘贴触发 ng-disabled //禁用按键 ng-readonly ng-checked ng-value <div ng-controller="Aaa"> <input type="checkbox" ng-model="aaa"/> <select> <option>111</option> <option ng-selected="aaa">222</option> </select> </div> <div ng-controller="Aaa"> <input type="text" ng-change="bbb='hello'" ng-model="bbb" />{{bbb}} </div>
引入模块