Skip to content

Commit

Permalink
separate routes
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Oct 4, 2023
1 parent 6fbffb1 commit 3e49683
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
9 changes: 1 addition & 8 deletions ui/src/app/account/account.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
10 changes: 10 additions & 0 deletions ui/src/app/account/account.route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Routes } from "@angular/router";
import { LoginComponent } from "./login/login.component";

export const routes: Routes = [
{
path: 'login',
component: LoginComponent
}
];

0 comments on commit 3e49683

Please sign in to comment.