4
4
5
5
A ** route manager** and pattern for ** [ Angular] **
6
6
7
- * ** Manages .** Introduces a new route management experience leading to better application control.
7
+ * ** Manager .** Introduces a new route management experience leading to better application control.
8
8
* ** Navigation.** Provides declarative experience of navigation.
9
9
* ** Fast.** In addition to speeding up development, it works as fast as it does without it.
10
10
* ** Pluggable.** Engineered as a plug-in. Designed to be added at any time during the development process.
11
- * ** Pattern.** Provides unified approach to manage the routing of the entire application.
11
+ * ** Pattern.** Provides a unified approach managing the routing of the entire application.
12
12
* ** Small.** ~ 3.5kB (minified + gzipped). It uses [ Angular] and [ rxjs] as peerDependencies.
13
13
14
+ In short, this is an add-on to the ** @angular/router ** which provides state-based routing for medium to large-size applications.
15
+
14
16
Read more about Routeshub on the [ docs site] ( https://routeshub.gitbook.io )
15
17
18
+ <br />
16
19
17
20
## Install
18
21
@@ -34,7 +37,7 @@ export const routes: Routes = [
34
37
},
35
38
{
36
39
path: ' about' ,
37
- component: AboutComponent
40
+ loadChildren : () => import ( ' example-app/app/views/about/about.module ' ). then ( m => m . AboutModule )
38
41
},
39
42
{
40
43
path: ' **' ,
@@ -71,13 +74,9 @@ import { aboutSlice } from '../views/about/hub/about.hub';
71
74
createRoot <AppNotes >(routes , { key: APP_NOTES_KEY });
72
75
73
76
/**
74
- * connects features which have attached relation
75
- * for this module
77
+ * connects features which have attached relation to parent module
76
78
*
77
- * {
78
- * path: 'about'
79
- * loadChildren: loadChildren: () => import('app/views/about/about.module').then(m => m.AboutModule)
80
- * }
79
+ * about module has its own routes which we wanna connect
81
80
*/
82
81
connectFeatures <AppNotes >(APP_NOTES_KEY , {
83
82
about: aboutSlice
@@ -409,3 +408,5 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
409
408
<!-- ALL-CONTRIBUTORS-LIST:END -->
410
409
411
410
This project follows the [ all-contributors] ( https://github.com/all-contributors/all-contributors ) specification. Contributions of any kind welcome!
411
+
412
+ <br />
0 commit comments