From 3e49683b54e770de1dea27c77732be18571feafd Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Wed, 4 Oct 2023 16:03:43 +0300 Subject: [PATCH] separate routes --- ui/src/app/account/account.module.ts | 9 +-------- ui/src/app/account/account.route.ts | 10 ++++++++++ 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 ui/src/app/account/account.route.ts diff --git a/ui/src/app/account/account.module.ts b/ui/src/app/account/account.module.ts index 81506c875..ca7072ff5 100644 --- a/ui/src/app/account/account.module.ts +++ b/ui/src/app/account/account.module.ts @@ -3,14 +3,7 @@ import { CommonModule } from '@angular/common'; import { LoginComponent } from './login/login.component'; import { RouterModule, Routes } from '@angular/router'; import { ReactiveFormsModule } from '@angular/forms'; - -const routes: Routes = [ - { - path: 'login', - component: LoginComponent - } -]; - +import { routes } from './account.route'; @NgModule({ declarations: [ diff --git a/ui/src/app/account/account.route.ts b/ui/src/app/account/account.route.ts new file mode 100644 index 000000000..315360708 --- /dev/null +++ b/ui/src/app/account/account.route.ts @@ -0,0 +1,10 @@ +import { Routes } from "@angular/router"; +import { LoginComponent } from "./login/login.component"; + +export const routes: Routes = [ + { + path: 'login', + component: LoginComponent + } + ]; + \ No newline at end of file