@@ -13,20 +13,18 @@ It's still an early work in progress, only superficially tested, and not by any
13
13
14
14
Do feel free to try it out, leave feedback and/or provide suggestions :)
15
15
16
- PLUGIN INSTALLATION DOES NOT WORK YET - will be sorted in the coming days
17
-
18
16
## Usage:
19
17
20
18
### To configure a component so that it can be navigated to:
21
19
` src/pages/foo.ts `
22
-
20
+
23
21
This:
24
22
25
23
```
26
24
@routable()
27
25
export class FooPage {}
28
26
```
29
-
27
+
30
28
Will generate the following ` RouteConfig ` :
31
29
32
30
```
@@ -39,14 +37,14 @@ PLUGIN INSTALLATION DOES NOT WORK YET - will be sorted in the coming days
39
37
settings: {}
40
38
}
41
39
```
42
-
40
+
43
41
This:
44
42
45
43
```
46
44
@routable({route: ["", "foo"]}) // pass in any RouteConfig properties to override the defaults
47
45
export class FooPage {}
48
46
```
49
-
47
+
50
48
Will generate the following ` RouteConfig ` :
51
49
52
50
```
@@ -59,7 +57,7 @@ PLUGIN INSTALLATION DOES NOT WORK YET - will be sorted in the coming days
59
57
settings: {}
60
58
}
61
59
```
62
-
60
+
63
61
This:
64
62
65
63
```
@@ -68,7 +66,7 @@ PLUGIN INSTALLATION DOES NOT WORK YET - will be sorted in the coming days
68
66
public static title = "The Foo Page"; // static properties on the class that match RouteConfig property names will also override the defaults
69
67
}
70
68
```
71
-
69
+
72
70
Will generate the following ` RouteConfig ` :
73
71
74
72
```
@@ -85,7 +83,7 @@ PLUGIN INSTALLATION DOES NOT WORK YET - will be sorted in the coming days
85
83
86
84
### To configure a component so that its router configuration will be mapped:
87
85
` src/app.ts `
88
-
86
+
89
87
This:
90
88
91
89
```
@@ -96,7 +94,7 @@ PLUGIN INSTALLATION DOES NOT WORK YET - will be sorted in the coming days
96
94
])
97
95
export class App {}
98
96
```
99
-
97
+
100
98
Will assign a ` configureRouter ` method (if none is present) or proxy the existing (if already present), to do the following:
101
99
102
100
```
@@ -121,7 +119,7 @@ PLUGIN INSTALLATION DOES NOT WORK YET - will be sorted in the coming days
121
119
])
122
120
}
123
121
```
124
-
122
+
125
123
126
124
127
125
0 commit comments