|
2 | 2 |
|
3 | 3 | # UI-Router
|
4 | 4 |
|
5 |
| -**Attention**: UI-Router uses <code>grunt >= 0.4.x</code> make sure to upgrade your environment and read the |
6 |
| -[Migration Guide](http://gruntjs.com/upgrading-from-0.3-to-0.4). |
7 |
| - |
8 |
| -Finally a de-facto solution to nested views and routing. |
9 |
| - |
| 5 | +####Finally a de-facto solution to nested views and routing. |
10 | 6 |
|
11 | 7 | ## Main Goal
|
12 |
| -To evolve the concept of an Angular "Route" into a more general concept of a "State" for managing complex application UI states. |
| 8 | +To evolve the concept of an [angularjs](http://angularjs.org/) [***route***](http://docs.angularjs.org/api/ng.$routeProvider) into a more general concept of a ***state*** for managing complex application UI states. |
13 | 9 |
|
14 | 10 | ## Main Features
|
15 | 11 | 1. **Robust State Management**
|
@@ -43,18 +39,23 @@ To evolve the concept of an Angular "Route" into a more general concept of a "St
|
43 | 39 | * [FAQ](https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions)
|
44 | 40 | * [Sample App](http://angular-ui.github.com/ui-router/sample/) ([Source](https://github.com/angular-ui/ui-router/tree/master/sample))
|
45 | 41 | * [Generated Docs](http://angular-ui.github.com/ui-router/build/doc/)
|
46 |
| -* Latest build: [angular-ui-states.min.js](http://angular-ui.github.com/ui-router/build/angular-ui-states.min.js) |
47 |
| - (uncompressed [angular-ui-states.js](http://angular-ui.github.com/ui-router/build/angular-ui-states.js)) |
| 42 | +* Latest build: [angular-ui-states.min.js](http://angular-ui.github.io/ui-router/release/angular-ui-router.min.js) |
| 43 | + (uncompressed [angular-ui-states.js](http://angular-ui.github.io/ui-router/release/angular-ui-router.js)) |
48 | 44 |
|
49 | 45 | ## Quick Start
|
50 |
| -1. Add angular-ui-states.min.js to your index.html |
51 |
| -> |
| 46 | +1. Get ui-router: |
| 47 | +>* with bower: `bower install angular-ui-router` |
| 48 | +>* fork this repo |
| 49 | +>* download the latest build ([compressed](http://angular-ui.github.io/ui-router/release/angular-ui-router.min.js) | [uncompressed](http://angular-ui.github.io/ui-router/release/angular-ui-router.js)) |
| 50 | +
|
| 51 | +1. Add angular-ui-router.js to your index.html |
| 52 | +> |
52 | 53 | ```html
|
53 | 54 | <!doctype html>
|
54 | 55 | <html ng-app="myapp">
|
55 | 56 | <head>
|
56 | 57 | <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script>
|
57 |
| - <script src="angular-ui-states.js"></script> |
| 58 | + <script src="angular-ui-router.js"></script> |
58 | 59 | ```
|
59 | 60 |
|
60 | 61 | 2. Add one or more `ui-view` to your app, give them names.
|
@@ -124,6 +125,9 @@ myapp.config(function($stateProvider, $routeProvider){
|
124 | 125 |
|
125 | 126 | ## Developing
|
126 | 127 |
|
| 128 | +**Attention**: UI-Router uses <code>grunt >= 0.4.x</code> make sure to upgrade your environment and read the |
| 129 | +[Migration Guide](http://gruntjs.com/upgrading-from-0.3-to-0.4). |
| 130 | + |
127 | 131 | Dependencies for building the solution and running tests:
|
128 | 132 |
|
129 | 133 | * [grunt-cli](https://github.com/gruntjs/grunt-cli) - run: `$ npm install -g grunt-cli`
|
|
0 commit comments