28 lines
622 B
TypeScript
28 lines
622 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
import { Routes, RouterModule } from '@angular/router'
|
|
|
|
import { HomeComponent } from '../content/image-container/home/home.component';
|
|
import { PageNotFoundComponent } from '../page-not-found/page-not-found.component';
|
|
|
|
const appRoutes: Routes = [
|
|
{
|
|
path: '',
|
|
component: HomeComponent
|
|
},
|
|
{
|
|
path: '**',
|
|
component: PageNotFoundComponent
|
|
}
|
|
]
|
|
|
|
@NgModule({
|
|
imports: [
|
|
CommonModule,
|
|
RouterModule.forRoot(appRoutes)
|
|
],
|
|
exports: [RouterModule],
|
|
declarations: []
|
|
})
|
|
export class AppRoutingModule { }
|