ngx-admin/docs/app/pages/docs/landing-docs-routing.module.ts

40 lines
948 B
TypeScript
Raw Normal View History

2019-07-16 08:38:11 +03:00
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LandingDocsComponent } from './landing-docs.component';
import { NgxAdminLandingPageComponent } from './page/ngx-admin-landing-page.component';
export const routes: Routes = [
{
path: '',
component: LandingDocsComponent,
children: [
{
path: ':page',
component: NgxAdminLandingPageComponent,
},
{
path: ':page/:subPage',
component: NgxAdminLandingPageComponent,
},
{
path: ':page/:subPage/:tab',
component: NgxAdminLandingPageComponent,
},
],
},
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class LandingDocsRoutingModule {
}