File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ Instance Methods
9
9
10
10
### ` getRoutes() `
11
11
12
- Returns an array of the active routes in order of their hierarchy .
12
+ Returns an array of all routes.
13
13
14
14
``` js
15
15
[route, route, ... ]
16
16
```
17
17
18
18
### ` getNamedRoutes() `
19
19
20
- Returns an object hash of active routes by name.
20
+ Returns an object hash of all routes by name.
21
21
22
22
``` js
23
23
{user: route, users: route, ... }
@@ -31,13 +31,11 @@ Example
31
31
-------
32
32
33
33
``` js
34
- var TopLevelApp = React .createClass ({
35
- mixins: [RouteLookup, PathState ],
34
+ React .createClass ({
35
+ mixins: [RouteLookup],
36
36
37
- // `updatePath` is from `PathState`
38
- updatePath : function () {
39
- var deepestRoute = this .getRoutes ().reverse ()[0 ];
40
- document .title = deepestRoute .props .title ;
37
+ componentDidMount : function () {
38
+ console .log (this .getRoutes ())
41
39
}
42
40
});
43
41
```
You can’t perform that action at this time.
0 commit comments