摘要:
templateUrl: 加载模板所要使用的 URL。 可以加载当前模板内对应的 text/ng-template script id。 在使用 chrome 浏览器时,“同源策略”会阻止 chorme 从 file:// 中加载模板,并显示一个“ Access-Control-Allow-Orig 阅读全文
posted @ 2017-01-31 20:54
。娴
阅读(2189)
评论(0)
推荐(0)
摘要:
自定义指令: ⚠️ 不要使用 ng 为指令,若指令名为 xxx-yyy,在设置指令名时应为 xxxYyy 即驼峰命名法。 restrict: 可以任意组合四种风格,如果忽略 restrict,默认为A。 template: 模板内容,这个内容根据 replace 参数设置替换节点或仅替换节点内容。 阅读全文
posted @ 2017-01-31 18:46
。娴
阅读(781)
评论(0)
推荐(0)
摘要:
ng-style ng-class ng-class-even ng-class-odd ng-show ng-hide ng-switch ng-src ng-href ng-if status: false status: true 阅读全文
posted @ 2017-01-31 12:25
。娴
阅读(141)
评论(0)
推荐(0)
摘要:
ng-change ng-click ng-dbclick ng-mousedown ng-mouseenter ng-mouseleave ng-mousemove mg-mouseover ng-mouseup ng-submit 阅读全文
posted @ 2017-01-31 11:26
。娴
阅读(232)
评论(0)
推荐(0)

浙公网安备 33010602011771号