Add notfound page

This commit is contained in:
Çetin
2022-01-15 11:13:40 +03:00
parent ca391ef1d6
commit 2b918bfd38
7 changed files with 60 additions and 6 deletions

View File

@@ -26,6 +26,7 @@ import { IconsComponent } from './components/icons/icons.component';
import { LandingComponent } from './components/landing/landing.component';
import { LoginComponent } from './components/login/login.component';
import { ErrorComponent } from './components/error/error.component';
import { NotfoundComponent } from './components/notfound/notfound.component';
@NgModule({
imports: [
RouterModule.forRoot([
@@ -60,7 +61,8 @@ import { ErrorComponent } from './components/error/error.component';
{path:'pages/landing', component: LandingComponent},
{path:'pages/login', component: LoginComponent},
{path:'pages/error', component: ErrorComponent},
{path: '**', redirectTo: 'pages/empty'},
{path:'pages/notfound', component: NotfoundComponent},
{path: '**', redirectTo: 'pages/notfound'},
], {scrollPositionRestoration: 'enabled'})
],
exports: [RouterModule]