From a65a5800cc67aea8ebb892e0b8528896e4067d5c Mon Sep 17 00:00:00 2001 From: alexkar598 <25136265+alexkar598@users.noreply.github.com> Date: Fri, 21 Jun 2024 03:08:48 -0400 Subject: [PATCH] Removes router --- package-lock.json | 2 +- package.json | 1 - src/app/app.component.ts | 2 -- src/app/app.config.ts | 4 ---- src/app/app.routes.ts | 3 --- 5 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 src/app/app.routes.ts diff --git a/package-lock.json b/package-lock.json index e42f366..e1a5666 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,6 @@ "@angular/forms": "^18.0.0", "@angular/platform-browser": "^18.0.0", "@angular/platform-browser-dynamic": "^18.0.0", - "@angular/router": "^18.0.0", "@codemirror/autocomplete": "^6.16.3", "@codemirror/commands": "^6.6.0", "@codemirror/language": "^6.10.2", @@ -663,6 +662,7 @@ "resolved": "https://registry.npmjs.org/@angular/router/-/router-18.0.3.tgz", "integrity": "sha512-/cglLev0USxUNMc4M+EBFGrqw1EpKq87LUJL3+0Ztr012sVSeOU38ad41fs6pPcMBePBDZIw7KmSXypvUJJFMA==", "license": "MIT", + "peer": true, "dependencies": { "tslib": "^2.3.0" }, diff --git a/package.json b/package.json index bfcab88..ccb214e 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "@angular/forms": "^18.0.0", "@angular/platform-browser": "^18.0.0", "@angular/platform-browser-dynamic": "^18.0.0", - "@angular/router": "^18.0.0", "@codemirror/autocomplete": "^6.16.3", "@codemirror/commands": "^6.6.0", "@codemirror/language": "^6.10.2", diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 1136202..467545f 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -7,7 +7,6 @@ import { TuiThemeNightModule, } from '@taiga-ui/core'; import { Component } from '@angular/core'; -import { RouterOutlet } from '@angular/router'; import { EditorComponent } from './components/editor/editor.component'; import { TerminalComponent } from './components/terminal/terminal.component'; import { EditorPageComponent } from './pages/editor-page/editor-page.component'; @@ -16,7 +15,6 @@ import { EditorPageComponent } from './pages/editor-page/editor-page.component'; selector: 'app-root', standalone: true, imports: [ - RouterOutlet, TuiRootModule, TuiDialogModule, TuiAlertModule, diff --git a/src/app/app.config.ts b/src/app/app.config.ts index 6c1b87e..f903024 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -5,15 +5,11 @@ import { provideZoneChangeDetection, importProvidersFrom, } from '@angular/core'; -import { provideRouter } from '@angular/router'; - -import { routes } from './app.routes'; export const appConfig: ApplicationConfig = { providers: [ provideAnimations(), provideZoneChangeDetection({ eventCoalescing: true }), - provideRouter(routes), importProvidersFrom(TuiRootModule), ], }; diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts deleted file mode 100644 index dc39edb..0000000 --- a/src/app/app.routes.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { Routes } from '@angular/router'; - -export const routes: Routes = [];