GitHub 博客园 Nanakon

随笔分类 -  913.Angular

手动启动angular
摘要:关于手动启动 angular 的问题angular核心原理解析1:angular自启动过程angular.element(document).ready(function() { angular.bootstrap(document, ["myApp"])})不写ng-app 阅读全文

posted @ 2015-11-27 15:40 jzm17173 阅读(194) 评论(0) 推荐(0)

ui-router
摘要:angular-ui/ui-router例子 阅读全文

posted @ 2015-11-27 15:21 jzm17173 阅读(135) 评论(0) 推荐(0)

指令 返回一个函数
摘要: 阅读全文

posted @ 2015-11-05 17:50 jzm17173 阅读(112) 评论(0) 推荐(0)

指令 scope
摘要:angular学习笔记(三十)-指令(8)-scope {{c11}} {{c21}} {{c31}} ... 阅读全文

posted @ 2015-11-05 17:33 jzm17173 阅读(116) 评论(0) 推荐(0)

指令 作用域
摘要:Inside Div Two: {{ aThirdProperty }} Inside Div Three: {{ aThirdProperty }} ... 阅读全文

posted @ 2015-11-05 16:08 jzm17173 阅读(133) 评论(0) 推荐(0)

service
摘要:Angular.js Servicesapp.service("foo", function() { var thisIsPrivate = "Private" this.variable = "This is public" this.getPrivate = function(... 阅读全文

posted @ 2015-11-02 14:17 jzm17173 阅读(95) 评论(0) 推荐(0)

$routeProvider
摘要:redirectTotemplateUrltemplatecontroller 阅读全文

posted @ 2015-10-28 15:19 jzm17173 阅读(155) 评论(0) 推荐(0)

$apply() $digest()
摘要:理解Angular中的$apply()以及$digest() Delayed Message: {{message}} 你应该使用$timeout service来代替setTimeout(),因为前者会帮你调用$apply(),让你不需要手动地调用它 ... 阅读全文

posted @ 2015-10-26 17:01 jzm17173 阅读(114) 评论(0) 推荐(0)

$resource
摘要:属性/URL映射AngularJS Resource:与 RESTful API 交互自定义$resource方法 get query save remove sendEmail ... 阅读全文

posted @ 2015-10-23 18:12 jzm17173 阅读(142) 评论(0) 推荐(0)

angular.extend
摘要:function f1() {}var f2 = angular.extend(f1, { active: false, toggle: function() { this.active = !this.active }})console.log(f1, f1.act... 阅读全文

posted @ 2015-10-16 16:33 jzm17173 阅读(135) 评论(0) 推荐(0)

$destroy
摘要:ng-view 路由切换会触发 $destroy 阅读全文

posted @ 2015-10-15 11:29 jzm17173 阅读(125) 评论(0) 推荐(0)

constant
摘要: 阅读全文

posted @ 2015-10-15 10:12 jzm17173 阅读(102) 评论(0) 推荐(0)

ui-grid
摘要:Angular UI Gridangular-ui/ui-grid 阅读全文

posted @ 2015-10-12 13:38 jzm17173 阅读(139) 评论(0) 推荐(0)

angular-translate
摘要:angular-translate使用 阅读全文

posted @ 2015-09-29 17:47 jzm17173 阅读(120) 评论(0) 推荐(0)

动画
摘要:ng-enter 元素创建ng-leave 元素销毁toggle 阅读全文

posted @ 2015-04-28 15:00 jzm17173 阅读(125) 评论(0) 推荐(0)

【Angular】排序
摘要:Correct way to integrate Jquery plugins in Angular.jsgaurav123337/AngularOtherJqueryPluginDemo超强的拖拽排序插件Sortable 阅读全文

posted @ 2015-04-10 14:46 jzm17173 阅读(154) 评论(0) 推荐(0)

-_-#【Angular】自定义指令directive
摘要:AngularJS学习笔记 //失去焦点使用 jQuery 的扩展支持冒泡app.directive('ngBlur', function($parse){ return function($scope, $element, $attr){ ... 阅读全文

posted @ 2015-01-13 10:34 jzm17173 阅读(3661) 评论(0) 推荐(0)

【Angular】过滤器
摘要:AngularJS学习笔记 过滤器也可以带参数,多个参数之间使用:分割 阅读全文

posted @ 2015-01-12 10:34 jzm17173 阅读(346) 评论(0) 推荐(0)

-_-#【Angular】工具函数
摘要:AngularJS学习笔记上下文绑定var f = angular.bind({a: 'xx'}, function() { console.log(this.a)})f() // 'xx'var f = function(x) { console.log(x)}angular.bind... 阅读全文

posted @ 2015-01-09 15:11 jzm17173 阅读(255) 评论(0) 推荐(0)

-_-#【Angular】依赖注入
摘要:AngularJS学习笔记var BoxCtrl = function($scope, $element) {}var str = BoxCtrl.toString().replace(/\s/g, '').split('){')[0].split('(')[1]var arr = str.spli... 阅读全文

posted @ 2015-01-06 14:27 jzm17173 阅读(122) 评论(0) 推荐(0)

导航

轻音