File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,15 @@ To evolve the concept of an Angular "Route" into a more general concept of a "St
69
69
</body >
70
70
```
71
71
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
73
79
>
74
80
``` javascript
75
- var myapp = angular .module (' myapp' , [])
76
81
myapp .config (function ($stateProvider , $routeProvider ){
77
82
$stateProvider
78
83
.state (' index' , {
@@ -111,10 +116,10 @@ myapp.config(function($stateProvider, $routeProvider){
111
116
})
112
117
```
113
118
114
- 4 . See this quick start example working.
119
+ 5 . See this quick start example working.
115
120
> ** [ Go to Quick Start Plunker] ( http://plnkr.co/edit/vDURUN?p=preview ) **
116
121
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.
118
123
> ** [ Dive Deeper!] ( https://github.com/angular ) **
119
124
120
125
## Developing
You can’t perform that action at this time.
0 commit comments