File tree 5 files changed +18
-5
lines changed
5 files changed +18
-5
lines changed Original file line number Diff line number Diff line change
1
+ <a name =" 0.4.1 " ></a >
2
+
3
+ ## [ 0.4.1] ( https://github.com/angular-component/router/compare/0.4.0...0.4.1 ) (2021-04-19)
4
+
5
+ ### Bug Fixes
6
+
7
+ - enhance active route comparison to allow if/else restrictions ([ #87 ] ( https://github.com/angular-component/router/issues/87 ) ) ([ af8b7b7] ( https://github.com/angular-component/router/commit/af8b7b7 ) )
8
+
1
9
<a name =" 0.4.0 " ></a >
2
10
3
11
# [ 0.4.0] ( https://github.com/angular-component/router/compare/0.3.1...0.4.0 ) (2021-01-18)
Original file line number Diff line number Diff line change 32
32
"command" : " yarn tsc -p libs/router/tsconfig.schematics.json"
33
33
}
34
34
]
35
+ },
36
+ "configurations" : {
37
+ "production" : {}
35
38
}
36
39
},
37
40
"lint" : {
Original file line number Diff line number Diff line change @@ -259,8 +259,7 @@ export class MyComponent {
259
259
Register a component to register the child routes.
260
260
261
261
``` ts
262
- import { NgModule , Component } from ' @angular/core' ;
263
- import { ModuleWithRoute } from ' @angular-component/router' ;
262
+ import { Component } from ' @angular/core' ;
264
263
265
264
@Component ({
266
265
template: `
@@ -278,6 +277,9 @@ export class LazyRouteComponent {}
278
277
Implement the ` ModuleWithRoute ` interface for the route component to render after the module is loaded.
279
278
280
279
``` ts
280
+ import { NgModule } from ' @angular/core' ;
281
+ import { ModuleWithRoute } from ' @angular-component/router' ;
282
+
281
283
@NgModule ({
282
284
declarations: [LazyRouteComponent , LazyComponent ],
283
285
})
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @angular-component/router" ,
3
- "version" : " 0.4.0 " ,
3
+ "version" : " 0.4.1 " ,
4
4
"description" : " A declarative router for Angular applications" ,
5
5
"schematics" : " ./schematics/collection.json" ,
6
6
"ng-add" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @angular-component/router" ,
3
- "version" : " 0.4.0 " ,
3
+ "version" : " 0.4.1 " ,
4
4
"license" : " MIT" ,
5
5
"scripts" : {
6
6
"ng" : " nx" ,
7
7
"postinstall" : " node ./decorate-angular-cli.js && ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points" ,
8
8
"nx" : " nx" ,
9
9
"start" : " ng serve" ,
10
- "build" : " ng build router" ,
10
+ "build" : " ng build router --prod " ,
11
11
"changelog" : " conventional-changelog -p angular -i CHANGELOG.md -s -r 0" ,
12
12
"test" : " ng test router" ,
13
13
"lint" : " nx workspace-lint && ng lint" ,
You can’t perform that action at this time.
0 commit comments