diff --git a/ui/hv2-ui/src/app/app-routing.module.ts b/ui/hv2-ui/src/app/app-routing.module.ts index 65c322a..6e09c09 100644 --- a/ui/hv2-ui/src/app/app-routing.module.ts +++ b/ui/hv2-ui/src/app/app-routing.module.ts @@ -18,6 +18,7 @@ import { OverheadAdvanceDetailsComponent } from './overhead-advance-details/over import { FeeListComponent } from './fee-list/fee-list.component'; import { FeeDetailsComponent } from './fee-details/fee-details.component'; import { EnterPaymentComponent } from './enter-payment/enter-payment.component'; +import { HomeComponent } from './home/home.component'; const routes: Routes = [ @@ -43,8 +44,10 @@ const routes: Routes = [ { path: 'fee/:id', component: FeeDetailsComponent, canActivate: [ AuthGuardService ] }, { path: 'fee', component: FeeDetailsComponent, canActivate: [ AuthGuardService ] }, { path: 'enterPayment', component: EnterPaymentComponent, canActivate: [ AuthGuardService ] }, + { path: 'home', component: HomeComponent }, { path: 'logout', component: LogoutComponent }, - { path: 'login', component: LoginComponent } + { path: 'login', component: LoginComponent }, + { path: '', pathMatch: 'full', redirectTo: 'home' } ] @NgModule({ diff --git a/ui/hv2-ui/src/app/app.module.ts b/ui/hv2-ui/src/app/app.module.ts index ef031a3..89485f3 100644 --- a/ui/hv2-ui/src/app/app.module.ts +++ b/ui/hv2-ui/src/app/app.module.ts @@ -46,7 +46,8 @@ import { MatExpansionModule } from '@angular/material/expansion'; import { AccountComponent } from './account/account.component'; import { NoteComponent } from './note/note.component' import { MatMomentDateModule, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/material-moment-adapter'; -import { EnterPaymentComponent } from './enter-payment/enter-payment.component' +import { EnterPaymentComponent } from './enter-payment/enter-payment.component'; +import { HomeComponent } from './home/home.component' registerLocaleData(localeDe) @@ -74,7 +75,8 @@ registerLocaleData(localeDe) FeeDetailsComponent, AccountComponent, NoteComponent, - EnterPaymentComponent + EnterPaymentComponent, + HomeComponent ], imports: [ BrowserModule, diff --git a/ui/hv2-ui/src/app/home/home.component.css b/ui/hv2-ui/src/app/home/home.component.css new file mode 100644 index 0000000..e69de29 diff --git a/ui/hv2-ui/src/app/home/home.component.html b/ui/hv2-ui/src/app/home/home.component.html new file mode 100644 index 0000000..5f2c53f --- /dev/null +++ b/ui/hv2-ui/src/app/home/home.component.html @@ -0,0 +1 @@ +

home works!

diff --git a/ui/hv2-ui/src/app/home/home.component.spec.ts b/ui/hv2-ui/src/app/home/home.component.spec.ts new file mode 100644 index 0000000..2c5a172 --- /dev/null +++ b/ui/hv2-ui/src/app/home/home.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { HomeComponent } from './home.component'; + +describe('HomeComponent', () => { + let component: HomeComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ HomeComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(HomeComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/ui/hv2-ui/src/app/home/home.component.ts b/ui/hv2-ui/src/app/home/home.component.ts new file mode 100644 index 0000000..007fef0 --- /dev/null +++ b/ui/hv2-ui/src/app/home/home.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-home', + templateUrl: './home.component.html', + styleUrls: ['./home.component.css'] +}) +export class HomeComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +}