From 3813d79c3710b978d8b00085cbf6bf4c1cccd456 Mon Sep 17 00:00:00 2001 From: Patrick Sun Date: Sat, 6 Mar 2021 14:59:17 +1100 Subject: [PATCH] added list-all-loans component as main comonent for loan editing. --- src/app/app.module.ts | 4 ++- .../list-all-loans.component.html | 1 + .../list-all-loans.component.scss | 0 .../list-all-loans.component.spec.ts | 25 +++++++++++++++++++ .../list-all-loans.component.ts | 15 +++++++++++ 5 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 src/app/list-all-loans/list-all-loans.component.html create mode 100644 src/app/list-all-loans/list-all-loans.component.scss create mode 100644 src/app/list-all-loans/list-all-loans.component.spec.ts create mode 100644 src/app/list-all-loans/list-all-loans.component.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index c67e870..464cba6 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -50,6 +50,7 @@ import { ChartAmountOfLoansComponent } from './chart-amount-of-loans/chart-amoun import { ChartPastYearMonthlyPerformanceComponent } from './chart-past-year-monthly-performance/chart-past-year-monthly-performance.component'; import { ChartRecentTenLoansComponent } from './chart-recent-ten-loans/chart-recent-ten-loans.component'; import { ChartTopBrokersComponent } from './chart-top-brokers/chart-top-brokers.component'; +import { ListAllLoansComponent } from './list-all-loans/list-all-loans.component'; @@ -72,7 +73,8 @@ import { ChartTopBrokersComponent } from './chart-top-brokers/chart-top-brokers. ChartAmountOfLoansComponent, ChartPastYearMonthlyPerformanceComponent, ChartRecentTenLoansComponent, - ChartTopBrokersComponent + ChartTopBrokersComponent, + ListAllLoansComponent ], imports: [ BrowserModule, diff --git a/src/app/list-all-loans/list-all-loans.component.html b/src/app/list-all-loans/list-all-loans.component.html new file mode 100644 index 0000000..2976bd7 --- /dev/null +++ b/src/app/list-all-loans/list-all-loans.component.html @@ -0,0 +1 @@ +

list-all-loans works!

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