Skip to content

Commit d856bd9

Browse files
committed
added step about setting up ui-state dependency
1 parent 7cbb7dc commit d856bd9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,15 @@ To evolve the concept of an Angular "Route" into a more general concept of a "St
6969
</body>
7070
```
7171

72-
3. Set up your states in the module config
72+
3. Set `ui.state` as a dependency in your module
73+
>
74+
```javascript
75+
var myapp = angular.module('myapp', ['ui.state'])
76+
```
77+
78+
4. Set up your states in the module config
7379
>
7480
```javascript
75-
var myapp = angular.module('myapp', [])
7681
myapp.config(function($stateProvider, $routeProvider){
7782
$stateProvider
7883
.state('index', {
@@ -111,10 +116,10 @@ myapp.config(function($stateProvider, $routeProvider){
111116
})
112117
```
113118

114-
4. See this quick start example working.
119+
5. See this quick start example working.
115120
>**[Go to Quick Start Plunker](http://plnkr.co/edit/vDURUN?p=preview)**
116121
117-
5. This only scratches the surface! Learn more about State options, Nested Views, Parallel Views.
122+
6. This only scratches the surface! Learn more about State options, Nested Views, Parallel Views.
118123
>**[Dive Deeper!](https://github.com/angular)**
119124
120125
## Developing

0 commit comments

Comments
 (0)