You can use ngModel in your own directives, but there are a few things you'll need to do to get it working properly.ngModel itself is an directive. If...
分类:
Web程序 时间:
2014-12-19 07:02:29
阅读次数:
222
Directive can use another directive though 'require' keyword.angular.module('docsTabsExample', []).directive('myTabs', function() { return { restr...
分类:
Web程序 时间:
2014-12-19 07:02:29
阅读次数:
582
先对自定义Directive有一个大体的映像myModule.directive('myDirective',function(injectables){ var directiveDefinitionObject={ restrict:string, priori...
分类:
Web程序 时间:
2014-12-18 22:05:56
阅读次数:
337
http://jimhoskins.com/2012/12/17/angularjs-and-apply.htmlhttp://www.cnblogs.com/zhrj000/p/3383898.htmlIf you’ve written a non-trivial amount of code i...
分类:
移动开发 时间:
2014-12-18 14:47:15
阅读次数:
261
介绍有很多可用的工具可以帮助你开发AngularJS 应用,那些非常复杂的框架不在我的讨论范围之中,这也是我开始这系列教程的原因。在第一部分,我们掌握了AngularJS框架的基本结构,开发了第一应用。这篇博文是为那些初学者写到。如果你是一个经验丰富的AngularJS开发者,你可能对揭秘指令或者A...
分类:
Web程序 时间:
2014-12-17 20:32:07
阅读次数:
232
使用指令模仿魅族官网的图片轮播功能(angularjs中DOM操作都在指令中完成)html<divclass="slider"broadcast> <divclass="slider-wrap"> <divclass="slider-1page"></div> <divclass="slider-2page"></div> <divclass="slider-3page..
分类:
Web程序 时间:
2014-12-17 19:00:06
阅读次数:
209
介绍
有很多可用的工具可以帮助你开发AngularJS 应用,那些非常复杂的框架不在我的讨论范围之中,这也是我开始这系列教程的原因。
在第一部分,我们掌握了AngularJS框架的基本结构,开发了第一应用。这篇博文是为那些初学者写到。如果你是一个经验丰富的AngularJS开发者,你可能对揭秘指令或者AngularJS在创业公司的使用更感兴趣。
在这一部分,我们将把应用的逻辑层放在一边,而是...
分类:
Web程序 时间:
2014-12-17 18:28:52
阅读次数:
208
1 前言前端技术的发展是如此之快,各种优秀技术、优秀框架的出现简直让人目不暇接,紧跟时代潮流,学习掌握新知识自然是不敢怠慢。AngularJS是google在维护,其在国外已经十分火热,可是国内的使用情况却有不小的差距,参考文献/网络文章也很匮乏。这里便将我学习AngularJS写成文档,一方面作为...
分类:
Web程序 时间:
2014-12-17 16:17:09
阅读次数:
245
Angular JS (Angular.JS) 是一组用来开发Web页面的框架、模板以及数据绑定和丰富UI组件。它支持整个开发进程,提供web应用的架构,无需进行手工DOM操作。 AngularJS很小,只有60K,兼容主流浏览器,与 jQuery 配合良好。双向数据绑定可能是AngularJS最酷最实用的特性,将MVC的原理展现地淋漓尽致....
分类:
Web程序 时间:
2014-12-17 14:37:36
阅读次数:
147
ui-router has the powerful ability to define abstract states, or states that can't be navigated to, but are useful for defining a set of states with s...
分类:
Web程序 时间:
2014-12-17 06:43:01
阅读次数:
202