angularjs 获取$scope对象
摘要:参考 https://blog.csdn.net/u011974399/article/details/77865293 angular.element("[ng-controller=xxx]").scope();
阅读全文
angularjs $injector:nomod
摘要:参考 http://blog.163.com/gis_warrior/blog/static/19361717320153111134135/ 检查是否有[],或者是否多次定义同一个module 标准定义 angular.module('1yd.config',[]) 加上[]表示定义,没有[]表示
阅读全文
angularjs 粘贴事件
摘要:参考 http://www.jb51.net/article/89708.htm ng-paste 需要setTimeout,否则无法获取到数据
阅读全文
angularjs directive scope 与父scope双向绑定
摘要:参考 http://www.jb51.net/article/83051.htm angluar.module("aaa").directive("testDirective", function() { return { scope : { param1 : "=", param2 : "=" }
阅读全文
angularjs $watch
摘要:参考 https://blog.csdn.net/u010451286/article/details/50635839
阅读全文
angluarjs ng-repeat 行号
摘要:参考 https://zhidao.baidu.com/question/1882914672116911828.html $index
阅读全文