ng-router-layout
v0.0.2
Published
missing router layout widget for angular
Downloads
3
Readme
ng-router-layout
missing router layout widget for angular
API Preview
app.component.html
use instead of <router-outlet/>
<router-layout-outlet></router-layout-outlet>
app.module.ts
regist layout components
RouterLayoutModule.regist(token: RouterLayoutToken);
type RouterLayoutToken = {
[key: string]: Component, // default is <router-outlet/>
};
app-routing.module.ts
setup layout for route
const routes: Routes = [{
path: 'fake',
data: {
layout: '', // keyof registed layout
},
}];