摘要:关于手动启动 angular 的问题angular核心原理解析1:angular自启动过程angular.element(document).ready(function() { angular.bootstrap(document, ["myApp"])})不写ng-app
阅读全文
摘要:angular-ui/ui-router例子
阅读全文
摘要:angular学习笔记(三十)-指令(8)-scope {{c11}} {{c21}} {{c31}} ...
阅读全文
摘要:Inside Div Two: {{ aThirdProperty }} Inside Div Three: {{ aThirdProperty }} ...
阅读全文
摘要:Angular.js Servicesapp.service("foo", function() { var thisIsPrivate = "Private" this.variable = "This is public" this.getPrivate = function(...
阅读全文
摘要:redirectTotemplateUrltemplatecontroller
阅读全文
摘要:理解Angular中的$apply()以及$digest() Delayed Message: {{message}} 你应该使用$timeout service来代替setTimeout(),因为前者会帮你调用$apply(),让你不需要手动地调用它 ...
阅读全文
摘要:属性/URL映射AngularJS Resource:与 RESTful API 交互自定义$resource方法 get query save remove sendEmail ...
阅读全文
摘要:function f1() {}var f2 = angular.extend(f1, { active: false, toggle: function() { this.active = !this.active }})console.log(f1, f1.act...
阅读全文
摘要:ng-view 路由切换会触发 $destroy
阅读全文
摘要:Angular UI Gridangular-ui/ui-grid
阅读全文
摘要:ng-enter 元素创建ng-leave 元素销毁toggle
阅读全文
摘要:Correct way to integrate Jquery plugins in Angular.jsgaurav123337/AngularOtherJqueryPluginDemo超强的拖拽排序插件Sortable
阅读全文
摘要:AngularJS学习笔记 //失去焦点使用 jQuery 的扩展支持冒泡app.directive('ngBlur', function($parse){ return function($scope, $element, $attr){ ...
阅读全文
摘要:AngularJS学习笔记 过滤器也可以带参数,多个参数之间使用:分割
阅读全文
摘要:AngularJS学习笔记上下文绑定var f = angular.bind({a: 'xx'}, function() { console.log(this.a)})f() // 'xx'var f = function(x) { console.log(x)}angular.bind...
阅读全文
摘要:AngularJS学习笔记var BoxCtrl = function($scope, $element) {}var str = BoxCtrl.toString().replace(/\s/g, '').split('){')[0].split('(')[1]var arr = str.spli...
阅读全文