1.下载?? git clone --depth=14 https://github.com/angular/angular-phonecat.git 2.? git?checkout?-f?step-0 3.npm install? 安装package.json中的插件(包括grunt之类) 4.bower install(npm install -...
分类:
Web程序 时间:
2015-04-12 22:53:39
阅读次数:
247
由于项目需求,需要使用angular 实现列表的增、删、改,并且列表支持拖拽。看了下angular-ui 里面的sortable组件,使用起来也是非常简单,几十行代码就完成了所需功能。我现在懒得想如何使用jquery完成该功能,不过我能肯定的是使用jquery完成这个功能,代码至少多几倍效果如下:本...
分类:
其他好文 时间:
2015-04-12 19:21:43
阅读次数:
186
运行 yo angular 出现如下提示:$ yo angular grunt-cli: The grunt command line interface. (v0.1.9) Fatal error: Unable to find local grunt. If you're se...
分类:
其他好文 时间:
2015-04-12 16:06:53
阅读次数:
125
http://angular-transitions.mgechev.com/#/repeathttp://bubkoo.com/2014/01/01/angular/ui-router/guide/state-manager/http://angular-ui.github.io/ui-route...
分类:
Web程序 时间:
2015-04-12 11:55:07
阅读次数:
168
angular中ajax请求的方法说明:/* * _http:angularJs中的$http对象 * _url:ajax请求的URL * _method:请求方式:POST或GET * _params:GET方式请求时传递的参数 * _data:POST方式请求时传递的参数 * _response...
分类:
Web程序 时间:
2015-04-10 21:49:01
阅读次数:
164
【问题描述】angular js的强大之处之一就是他的数据双向绑定功能----->ng-bind和针对form的ng-model但在我们的项目当中会遇到这样的情况,后台返回的数据中带有各种各样的html标签angularJs输出html的时候,浏览器并不解析这些html标签我们用ng-bind-ht...
分类:
Web程序 时间:
2015-04-10 19:47:26
阅读次数:
120
Correct way to integrate Jquery plugins in Angular.jsgaurav123337/AngularOtherJqueryPluginDemo超强的拖拽排序插件Sortable
分类:
编程语言 时间:
2015-04-10 15:16:46
阅读次数:
106
angular在2009年诞生,孤陋寡闻的我在去年年底才知道有这么个东西。一开始接触的时候觉得好神奇,好酷炫,什么双向绑定的,所以就开始了解并开始试着做一些应用,用着用着就发现了angular的一些麻烦之处。每一样东西都是两面性的,所以要求十全十美是不可能的。接下来先说一说angular吸引人...
分类:
其他好文 时间:
2015-04-09 19:47:55
阅读次数:
167
示例代码:angular.module("myTest",[])
.directive(‘multipleIdentityNo‘,[function(){
return{
require:"ngModel",
link:function(scope,element,attr,ngModel){
if(ngModel){
varemailsRegexp=/^/d{17}[X0-9]{1}$/;//校验身-份-s-证号码
}
varcustomValidator=function(value..
分类:
其他好文 时间:
2015-04-09 17:45:18
阅读次数:
196