Skip to content

Commit 528ea2f

Browse files
committed
Update README.md
1 parent cf32719 commit 528ea2f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,16 @@ To evolve the concept of an [angularjs](http://angularjs.org/) [***route***](htt
5656
<html ng-app="myapp">
5757
<head>
5858
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script>
59-
<script src="angular-ui-router.min.js"></script>
59+
<script src="angular-ui-router.min.js"></script> <!-- Insert after main angular.js file -->
6060
```
6161

62-
2. Add one or more `ui-view` to your app, give them names.
62+
2. Set `ui.state` as a dependency in your module
63+
>
64+
```javascript
65+
var myapp = angular.module('myapp', ['ui.state'])
66+
```
67+
68+
3. Add one or more `ui-view` to your app, give them names.
6369
>
6470
```html
6571
<body>
@@ -71,12 +77,6 @@ To evolve the concept of an [angularjs](http://angularjs.org/) [***route***](htt
7177
</body>
7278
```
7379

74-
3. Set `ui.state` as a dependency in your module
75-
>
76-
```javascript
77-
var myapp = angular.module('myapp', ['ui.state'])
78-
```
79-
8080
4. Set up your states in the module config
8181
>
8282
```javascript

0 commit comments

Comments
 (0)