28 lines
604 B
TypeScript
28 lines
604 B
TypeScript
|
import { NgModule } from "@angular/core";
|
||
|
import { RouterModule, Routes } from "@angular/router";
|
||
|
|
||
|
import { DashboardComponent } from "./dashboard.component";
|
||
|
import { DucksComponent } from "./ducks.component";
|
||
|
|
||
|
const routes: Routes = [
|
||
|
{
|
||
|
path: '',
|
||
|
redirectTo: '/dashboard',
|
||
|
pathMatch: 'full'
|
||
|
},
|
||
|
{
|
||
|
path: 'dashboard',
|
||
|
component: DashboardComponent,
|
||
|
},
|
||
|
{
|
||
|
path: 'ducks',
|
||
|
component: DucksComponent
|
||
|
}
|
||
|
]
|
||
|
|
||
|
@NgModule({
|
||
|
imports: [ RouterModule.forRoot(routes) ],
|
||
|
exports: [ RouterModule ]
|
||
|
})
|
||
|
export class AppRoutingModule {}
|