feat(router): enforce usage of ... syntax for parent to child component routes
This commit is contained in:
@ -122,7 +122,7 @@ class ParentCmp {
|
||||
|
||||
@Component({selector: 'app-cmp'})
|
||||
@View({template: `root { <router-outlet></router-outlet> }`, directives: routerDirectives})
|
||||
@RouteConfig([{path: '/parent', component: ParentCmp}])
|
||||
@RouteConfig([{path: '/parent/...', component: ParentCmp}])
|
||||
class HierarchyAppCmp {
|
||||
constructor(public router: Router, public location: BrowserLocation) {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user