内置指令大全

ng-include 包含一个文件
ng-href ng-src 对应 href src
ng-disabled ng-readonly 对应 disabled readonly
ng-checked ng-selected ng-options ng-true-value ng-false-value 对应 checked select option
ng-class ng-style ng-class-even ng-class-odd ng-show ng-hide ng-cloak class style, 隔行用不同样式, 元素显示与否, 加载不完全时闪烁效果
ng-switch ng-if ng-repeat ng-repeat-start ng-repeat-end 逻辑控制 元素生成与否与遍历元素
ng-submit ng-click ng-dblclick ng-change ng-mousedown ng-mouseenter ng-mouseleave ng-mousemove ng-mouseover ng-mouseup 相应的鼠标键盘事件
ng-bind ng-bind-html ng-bind-html-unsafe ng-bind-template 绑定显示数据: 文本,半html,全html,组合模板
ng-view ng-route 路由功能


ng-href百度
ng-src


ng-checked ng-true-value="admin" ng-false-value="basic"

ng-options ng-selected

ng-class ng-style

{{elem.name}} ng-class-even ng-class-odd

ng-cloak


ng-switch-when abc
ng-switch-default
ng-if
ng-repeat-start ng-repeat-end: 从start标记的元素开始,到end标记的元素结束,作为循环体进行循环输出,可以跳出父子元素关系。

{{currentEventName}}

ng-dblclick

ng-mousedown ng-mouseenter ng-mouseleave ng-mousemove ng-mouseover ng-mouseup

ng-bind

ng-bind-template

ng-bind-html ng-bind-html-unsafe需要引入sanitize文件,也就是说Angular不推荐html

url: http://jimuyouyou.github.io/SearchableCookbook4Coder/plugins/angular-js/ng-view-ngRoute.html