# packaged angular-route
This repo is for distribution on `npm` and `bower`. The source for this module is in the
[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngRoute).
Please file issues and pull requests against that repo.
## Install
You can install this package either with `npm` or with `bower`.
### npm
```shell
npm install angular-route
```
Then add `ngRoute` as a dependency for your app:
```javascript
angular.module('myApp', [require('angular-route')]);
```
### bower
```shell
bower install angular-route
```
Add a `<script>` to your `index.html`:
```html
<script src="/bower_components/angular-route/angular-route.js"></script>
```
Then add `ngRoute` as a dependency for your app:
```javascript
angular.module('myApp', ['ngRoute']);
```
## Documentation
Documentation is available on the
[AngularJS docs site](http://docs.angularjs.org/api/ngRoute).
## License
The MIT License
Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
本实例实现了require和angular的项目搭建,使用bower进行必要的依赖包部署,gulp进行数据压缩,实现两个angular页面之间的切换,适合使用require管理angular的架构(注:由于部分依赖包比较大,所有用户下载之后,需自己安装,包括gulp的各种插件,在配置文件package.json中可以查看插件列表)
资源推荐
资源详情
资源评论
收起资源包目录
requireJs+angularJs+gulp实现的测试 (473个子文件)
.bowerrc 26B
angular-csp.css 343B
angular-csp.css 343B
angular-csp.css 343B
index.css 59B
index.css 59B
index.css 39B
angular.min.js.gzip 58KB
angular.min.js.gzip 58KB
angular.min.js.gzip 58KB
index.html 520B
index.html 511B
index.html 511B
sy.html 87B
sy.html 87B
sy.html 87B
login.html 81B
login.html 81B
login.html 81B
angular.js 1.23MB
angular.js 1.23MB
angular.js 1.23MB
jquery.js 265KB
jquery.js 265KB
jquery.js 265KB
jquery.slim.js 214KB
jquery.slim.js 214KB
jquery.slim.js 214KB
angular.min.js 166KB
angular.min.js 166KB
angular.min.js 166KB
jquery.min.js 85KB
jquery.min.js 85KB
jquery.min.js 85KB
require.js 84KB
require.js 84KB
require.js 84KB
jquery.slim.min.js 68KB
jquery.slim.min.js 68KB
jquery.slim.min.js 68KB
sizzle.js 64KB
sizzle.js 64KB
sizzle.js 64KB
angular-route.js 44KB
angular-route.js 44KB
angular-route.js 44KB
ajax.js 22KB
ajax.js 22KB
ajax.js 22KB
sizzle.min.js 19KB
sizzle.min.js 19KB
sizzle.min.js 19KB
event.js 19KB
event.js 19KB
event.js 19KB
effects.js 17KB
effects.js 17KB
effects.js 17KB
css.js 13KB
css.js 13KB
css.js 13KB
manipulation.js 12KB
manipulation.js 12KB
manipulation.js 12KB
deferred.js 11KB
deferred.js 11KB
deferred.js 11KB
core.js 9KB
core.js 9KB
core.js 9KB
core.js 9KB
core.js 9KB
core.js 9KB
offset.js 7KB
offset.js 7KB
offset.js 7KB
selector-native.js 6KB
selector-native.js 6KB
selector-native.js 6KB
angular-route.min.js 5KB
angular-route.min.js 5KB
angular-route.min.js 5KB
callbacks.js 5KB
callbacks.js 5KB
callbacks.js 5KB
gulpfile.js 5KB
trigger.js 5KB
trigger.js 5KB
trigger.js 5KB
traversing.js 4KB
traversing.js 4KB
traversing.js 4KB
classes.js 4KB
classes.js 4KB
classes.js 4KB
xhr.js 4KB
xhr.js 4KB
xhr.js 4KB
data.js 4KB
data.js 4KB
共 473 条
- 1
- 2
- 3
- 4
- 5
资源评论
zwvier
- 粉丝: 4
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功