Skip to content
This repository was archived by the owner on Dec 25, 2023. It is now read-only.

Commit bb7fef6

Browse files
Merge pull request #284 from maktarsis/release-3.0.2
Release 3.0.2
2 parents 7e8757e + a21bb11 commit bb7fef6

File tree

11 files changed

+18302
-15079
lines changed

11 files changed

+18302
-15079
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 3.0.2 2019-09-08
2+
3+
- fixed queryParams issue
4+
- updated documentation and deps
5+
16
# 3.0.1 2019-07-21
27

38
- updated documentation

README.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@
44

55
A **route manager** and pattern for **[Angular]**
66

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.
88
* **Navigation.** Provides declarative experience of navigation.
99
* **Fast.** In addition to speeding up development, it works as fast as it does without it.
1010
* **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.
1212
* **Small.** ~3.5kB (minified + gzipped). It uses [Angular] and [rxjs] as peerDependencies.
1313

14+
In short, this is an add-on to the **@angular/router** which provides state-based routing for medium to large-size applications.
15+
1416
Read more about Routeshub on the [docs site](https://routeshub.gitbook.io)
1517

18+
<br/>
1619

1720
## Install
1821

@@ -34,7 +37,7 @@ export const routes: Routes = [
3437
},
3538
{
3639
path: 'about',
37-
component: AboutComponent
40+
loadChildren: () => import('example-app/app/views/about/about.module').then(m => m.AboutModule)
3841
},
3942
{
4043
path: '**',
@@ -71,13 +74,9 @@ import { aboutSlice } from '../views/about/hub/about.hub';
7174
createRoot<AppNotes>(routes, { key: APP_NOTES_KEY });
7275

7376
/**
74-
* connects features which have attached relation
75-
* for this module
77+
* connects features which have attached relation to parent module
7678
*
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
8180
*/
8281
connectFeatures<AppNotes>(APP_NOTES_KEY, {
8382
about: aboutSlice
@@ -409,3 +408,5 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
409408
<!-- ALL-CONTRIBUTORS-LIST:END -->
410409

411410
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
411+
412+
<br/>

docs/assets/routeshub.svg

+12
Loading

example-app/app/core/components/header/header.component.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
</a>
1414
<a [navLink]="hub.car.year.state"
1515
[navParams]="{year: 2018}"
16+
[queryParams]="{ color: 'black'}"
1617
[navLinkActive]="['myActiveClass', 'myActiveClass2']">
17-
Car (navLink)
18+
Car (navLink + queryParams)
1819
</a>
1920

2021
<a (click)="freshCar()">
@@ -25,10 +26,10 @@
2526
Details
2627
</a>
2728

28-
<a [navLink]="hub.home.home.state" [routerLinkActive]="['router-link-active']" [routerLinkActiveOptions]="{exact:true}">
29+
<a [navLink]="hub.home.home.state">
2930
Home
3031
</a>
31-
<a [navLink]="hub.users.users.state" [routerLinkActive]="['router-link-active']">
32+
<a [navLink]="hub.users.users.state">
3233
Users
3334
</a>
3435
</nav>

example-app/app/hub/app.hub.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ createRoot<AppNotes, AppChildNotes>(routes, {
3333
*
3434
* {
3535
* path: 'about'
36-
* loadChildren: loadChildren: () => import('example-app/app/views/about/about.module').then(m => m.AboutModule)
36+
* loadChildren: () => import('example-app/app/views/about/about.module').then(m => m.AboutModule)
3737
* }
3838
*/
3939
connectFeatures<AppNotes, AppChildNotes>(APP_NOTES_KEY, {

0 commit comments

Comments
 (0)