Skip to content

Commit a4fd562

Browse files
committed
fix(igx-ts): update error components
1 parent c7e1c79 commit a4fd562

4 files changed

Lines changed: 11 additions & 17 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Routes } from '@angular/router';
2-
import { PageNotFoundComponent } from './error-routing/not-found/not-found.component';
3-
import { UncaughtErrorComponent } from './error-routing/error/uncaught-error.component';
2+
import { NotFound } from './error-routing/not-found/not-found';
3+
import { UncaughtError } from './error-routing/error/uncaught-error';
44

55
export const routes: Routes = [
6-
{ path: 'error', component: UncaughtErrorComponent },
7-
{ path: '**', component: PageNotFoundComponent } // must always be last
6+
{ path: 'error', component: UncaughtError },
7+
{ path: '**', component: NotFound } // must always be last
88
];

packages/igx-templates/igx-ts/projects/_base/files/src/app/error-routing/error/uncaught-error.component.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/igx-templates/igx-ts/projects/_base/files/src/app/error-routing/not-found/not-found.component.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
import { enableProdMode } from '@angular/core';
12
import { bootstrapApplication } from '@angular/platform-browser';
2-
import { appConfig } from './app/app.config';
33
import { App } from './app/app';
4+
import { appConfig } from './app/app.config';
5+
import { environment } from './environments/environment';
6+
7+
if (environment.production) {
8+
enableProdMode();
9+
}
410

511
bootstrapApplication(App, appConfig)
612
.catch((err) => console.error(err));

0 commit comments

Comments
 (0)