emarket router child && side nav custom matarial component
install
- npm i emarket-router
// import module import { RouteLinkModule } from 'emarket-router'; import { EmarketSidenavContainerModule } from 'emarket-router';
@NgModule({ imports: [ RouteLinkModule, // link child component EmarketSidenavContainerModule // side nav component ] })
- using
- emarket side nav custom matarial
- emarket router child <app-route-link [links]="listRoute">
example:
listRoute = [ { "href":"/users/merchant/my-account/my-profile", "name":"My Profile" } ,{ "href":"/users/merchant/my-account/merchant-detail", "name":"Merchant detail" } ,{ "href":"/users/merchant/my-account/stores", "name":"Stores" } ]