码迷,mamicode.com
首页 >  
搜索关键字:angular    ( 5418个结果)
Style-Guide-Collection
> Collection of some commonly used style guide > From:https://github.com/xiaobeicn/Style-Guide-Collection ---- ### A * Angular + [johnpapa/angularjs-style-guide](https://github.com/johnpapa/angul...
分类:其他好文   时间:2015-04-14 13:09:24    阅读次数:100
ionic隐藏tabs方法
1. 2.在该控制器下加上.directive:var module = angular.module('app.directives', []);module.directive('hideTabs', function($rootScope) { return { restr...
分类:其他好文   时间:2015-04-14 09:51:50    阅读次数:430
使用ASP.NET 5开发AngularJS应用
今天推荐的是一个系列文章,讲述了如何使用ASP.NET 5来开发AngularJS应用,一共7篇文章。 在Visual Studio 2015中由于优化了项目结构,优化了前端JS框架的引用方式,所以开发AngularJS这样的应用就更加方便了。 这个讲述如何使用ASP.NET 5来开发Angular...
分类:Web程序   时间:2015-04-14 00:38:24    阅读次数:122
angular修改数据
/* 修改scope上的sb对象的name属性*///方法1:直接修改sb对象. 不会自动触发监听函数scope.sb.name = 'Tonny'; //方法2:使用scope的$apply方法,在数据修改后会自动触发监听函数scope.$apply("sb.name = 'Tonny'")...
分类:其他好文   时间:2015-04-13 18:48:58    阅读次数:108
【AngularJs】---"Error: [ng:areq] Argument 'fn' is not a function, got Object"
项目中把controller、service抽取出来一步一步没有报错index那里加 就报错了【原因】我抽取出来的controller头部也这样写了angular.module('gflt.controllers', [])正确写法angular.module('gflt.controllers')
分类:Web程序   时间:2015-04-13 18:36:38    阅读次数:770
调用AngularJS的API
使用注入器的invoke()方法,可以直接调用一个用户自定义的函数体,并通过函数参数 注入所以来的对象:angular.injector(['ng']).invoke(function($http){ //do sth. with $http});也可以使用注入器的get()方法,获得指定名称...
分类:Windows程序   时间:2015-04-13 18:25:10    阅读次数:180
[AngularJS + Webpack] Using Webpack for angularjs
1. Install webpack & angular:npm install webpack angular2. Create webpack.config.js file:module.exports = { context: __dirname + '/app', entry: ...
分类:Web程序   时间:2015-04-13 06:53:35    阅读次数:220
angularjs
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 ng-repeat+sortable 拖拽demo
由于项目需求,需要使用angular 实现列表的增、删、改,并且列表支持拖拽。看了下angular-ui 里面的sortable组件,使用起来也是非常简单,几十行代码就完成了所需功能。我现在懒得想如何使用jquery完成该功能,不过我能肯定的是使用jquery完成这个功能,代码至少多几倍效果如下:本...
分类:其他好文   时间:2015-04-12 19:21:43    阅读次数:186
yeoman错误提示
运行 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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!