一、定义 指令,可以把它简单的理解成在特定DOM元素上运行的函数,指令可以扩展这个元素的功能。指令的基本结构如下:angular.module('myApp', []).directive('myDirective', function() {return {restrict: String,pr....
分类:
其他好文 时间:
2015-03-13 12:15:21
阅读次数:
117
AngularJS: Factory vs Service vs ProviderByTylerOn May 4, 2014With44 CommentsInTechnicalWhen you first get started with Angular, you’ll naturally find...
分类:
Web程序 时间:
2015-03-12 16:44:36
阅读次数:
165
在网上收集了angular.js的网站,不错,收集收集http://www.ituring.com.cn/minibook/303http://www.zouyesheng.com/angular.html#toc80
分类:
其他好文 时间:
2015-03-11 18:40:57
阅读次数:
92
ng-repeat
html
{{answer}}
js
module...
分类:
其他好文 时间:
2015-03-10 12:06:39
阅读次数:
160
这篇文章主要介绍了angular中如果使用ui-router使用,并总结了一些常见的用法...
分类:
Web程序 时间:
2015-03-10 00:13:48
阅读次数:
249
http://tutorials.jenkov.com/angularjs/watch-digest-apply.htmlhttp://angular-tips.com/blog/2013/08/why-does-angular-dot-js-rock/
分类:
Web程序 时间:
2015-03-09 14:23:47
阅读次数:
132
angularjs 入门教程http://angular-tips.com/blog/2013/08/why-does-angular-dot-js-rock/Practive the previous atricale on jsbin at the following URL:http://js...
分类:
Web程序 时间:
2015-03-09 00:16:00
阅读次数:
131
由于angularjs数据的双向绑定特性,当scope中的数据发生改变的时候,会自动刷新界面。当点击first按钮的时候,scope中的dataList数据发生了变化,界面会自动刷新。如果要实现dom的刷新有2种方式:方式一:删除之前所有存在的dom,然后重新生成dom。方式二:重用之前的dom元素,仅仅更新dom元素的属性。在没有使用track by的情况下,angular采用的是方式一,这一点可以通过我们注册的DOMNodeRemoved事件处理函数得到证实。...
分类:
其他好文 时间:
2015-03-07 22:47:25
阅读次数:
4776
因为工作中实际开发需要,才开始接触angular框架。从当初的比葫芦画瓢,被各种问题、概念折磨摧残,到现在有一定的了解认识,觉得有必要将自己的认识进行简单的总结。不到位的地方还望多多包涵。1.双向数据绑定 目前业内盛行各种MV**框架,相关的框架不断涌现,而angular就是其中的一种(M...
分类:
其他好文 时间:
2015-03-07 22:41:42
阅读次数:
195