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