这篇文章主要介绍了angular中如果使用ui-router使用,并总结了一些常见的用法...
分类:
Web程序 时间:
2015-03-10 00:13:48
阅读次数:
249
用 ng-show 来显示错误信息的时候需要写很多的代码,找了一个插件 ng-messages。使用方法下:js 代码中加入依赖var myApp = angular.module('myApp', [
"restangular",
'ui.router',
'ngMessages',
...
html 中添加 js 文件<script src="bower_comp...
分类:
其他好文 时间:
2015-02-11 18:40:08
阅读次数:
227
修改 ztree 兼容 angularjs-ui-router...
分类:
其他好文 时间:
2015-01-12 17:43:27
阅读次数:
263
本文主要说明在用AngularJS开发web应用中如何实现lazyload,使用AngularJS需要在前端实现路由功能,本文就介绍利用此点实现前端资源的懒加载。问题目前大部分AngularJS的应用用requirJS组织模块,但是很多都没有使用lazyload功能,在app.js中启动时将全部依赖...
分类:
Web程序 时间:
2015-01-06 15:11:28
阅读次数:
23808
angular的MVVM框架结构: 1. app,2.routes, config,3.module,4.Controller, $scope,controller参数,事件机制。5.Model, Service, factory, ui-router, provider (stateprovide...
分类:
Web程序 时间:
2015-01-04 16:41:28
阅读次数:
144
ui-router's states and AngularJS directives have much in common. Let's explores the similarities between the two and how these patterns have emerged i...
分类:
Web程序 时间:
2015-01-04 06:25:08
阅读次数:
216
We'velooked at lazy loading with ocLazyLoadpreviously, but what if we are using ui-router and want to lazy load modules when we change states?angular....
分类:
Web程序 时间:
2015-01-04 06:24:36
阅读次数:
1221
{id:[0-9a-fA-F]{1,8}}如果在找ui-router 时,会看到以上的正则我解释一下id是param,可以把必备的结果收起来[]里面的必配的正则,但只是给一个string{}第几个到第几个要匹配的string以上会for loop 8次,每次看看单个string是否能不能匹配注意:如...
分类:
其他好文 时间:
2014-12-18 20:28:33
阅读次数:
190
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
titleui-router 会去解析body里的ui-sref,title对ui-router来说是一种状态,接着会去找着状态$stateProvider .state('title', { url: '/title', ... })state就是状态,发现了就会把ti...
分类:
其他好文 时间:
2014-12-05 12:17:38
阅读次数:
165