@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
29 lines (25 loc) • 683 B
text/typescript
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { DefaultComponent } from './default.component';
const routes: Routes = [
{
path: '',
component: DefaultComponent,
// if the component has child components that need to be routed to, include them in the children array.
children: [
{
path: '',
redirectTo: 'base',
pathMatch: 'full'
}
]
}];
({
imports: [
RouterModule.forChild(routes)
],
exports: [
RouterModule
]
})
export class Routing { }