| import {BrokerDashboardComponent} from './broker-dashboard/broker-dashboard.component'; | import {BrokerDashboardComponent} from './broker-dashboard/broker-dashboard.component'; | ||||
| import {LoanStepsComponent} from './loan-steps/loan-steps.component'; | import {LoanStepsComponent} from './loan-steps/loan-steps.component'; | ||||
| import {LoanRowListComponent} from './loan-row-list/loan-row-list.component'; | import {LoanRowListComponent} from './loan-row-list/loan-row-list.component'; | ||||
| import {LoanDetailComponent} from './loan-detail/loan-detail.component'; | |||||
| const routes: Routes = [ | const routes: Routes = [ |
| import { ListViewModule } from '@progress/kendo-angular-listview'; | import { ListViewModule } from '@progress/kendo-angular-listview'; | ||||
| import { LoanRowListComponent } from './loan-row-list/loan-row-list.component'; | import { LoanRowListComponent } from './loan-row-list/loan-row-list.component'; | ||||
| import { LoanSingleRowComponent } from './loan-single-row/loan-single-row.component'; | import { LoanSingleRowComponent } from './loan-single-row/loan-single-row.component'; | ||||
| import { LoanDetailBasicInfoComponent } from './loan-detail/loan-detail-basic-info/loan-detail-basic-info.component'; | |||||
| import { LoanDetailPeopleComponent } from './loan-detail/loan-detail-people/loan-detail-people.component'; | |||||
| import { LoanDetailRewardComponent } from './loan-detail/loan-detail-reward/loan-detail-reward.component'; | |||||
| import { LoanDetailProgressComponent } from './loan-detail/loan-detail-progress/loan-detail-progress.component'; | |||||
| import { LoanDetailTrailComponent } from './loan-detail/loan-detail-trail/loan-detail-trail.component'; | |||||
| LoanStepsComponent, | LoanStepsComponent, | ||||
| LoanRowListComponent, | LoanRowListComponent, | ||||
| LoanSingleRowComponent, | LoanSingleRowComponent, | ||||
| LoanDetailBasicInfoComponent, | |||||
| LoanDetailPeopleComponent, | |||||
| LoanDetailRewardComponent, | |||||
| LoanDetailProgressComponent, | |||||
| LoanDetailTrailComponent, | |||||
| ], | ], | ||||
| imports: [ | imports: [ | ||||
| BrowserModule, | BrowserModule, |
| <p>loan-detail-basic-info works!</p> | |||||
| basic info {{ Loan.Id}} |
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
| import { LoanDetailBasicInfoComponent } from './loan-detail-basic-info.component'; | |||||
| describe('LoanDetailBasicInfoComponent', () => { | |||||
| let component: LoanDetailBasicInfoComponent; | |||||
| let fixture: ComponentFixture<LoanDetailBasicInfoComponent>; | |||||
| beforeEach(async () => { | |||||
| await TestBed.configureTestingModule({ | |||||
| declarations: [ LoanDetailBasicInfoComponent ] | |||||
| }) | |||||
| .compileComponents(); | |||||
| }); | |||||
| beforeEach(() => { | |||||
| fixture = TestBed.createComponent(LoanDetailBasicInfoComponent); | |||||
| component = fixture.componentInstance; | |||||
| fixture.detectChanges(); | |||||
| }); | |||||
| it('should create', () => { | |||||
| expect(component).toBeTruthy(); | |||||
| }); | |||||
| }); |
| import { Component, Input, OnInit } from '@angular/core'; | |||||
| import {LoanModel} from '../../models/loan.model'; | |||||
| @Component({ | |||||
| selector: 'app-loan-detail-basic-info', | |||||
| templateUrl: './loan-detail-basic-info.component.html', | |||||
| styleUrls: ['./loan-detail-basic-info.component.scss'] | |||||
| }) | |||||
| export class LoanDetailBasicInfoComponent implements OnInit { | |||||
| @Input() Loan: LoanModel; | |||||
| constructor() { } | |||||
| ngOnInit(): void { | |||||
| } | |||||
| } |
| <p>loan-detail-people works! {{ Loan.Id}}</p> |
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
| import { LoanDetailPeopleComponent } from './loan-detail-people.component'; | |||||
| describe('LoanDetailPeopleComponent', () => { | |||||
| let component: LoanDetailPeopleComponent; | |||||
| let fixture: ComponentFixture<LoanDetailPeopleComponent>; | |||||
| beforeEach(async () => { | |||||
| await TestBed.configureTestingModule({ | |||||
| declarations: [ LoanDetailPeopleComponent ] | |||||
| }) | |||||
| .compileComponents(); | |||||
| }); | |||||
| beforeEach(() => { | |||||
| fixture = TestBed.createComponent(LoanDetailPeopleComponent); | |||||
| component = fixture.componentInstance; | |||||
| fixture.detectChanges(); | |||||
| }); | |||||
| it('should create', () => { | |||||
| expect(component).toBeTruthy(); | |||||
| }); | |||||
| }); |
| import {Component, Input, OnInit} from '@angular/core'; | |||||
| import {LoanModel} from '../../models/loan.model'; | |||||
| @Component({ | |||||
| selector: 'app-loan-detail-people', | |||||
| templateUrl: './loan-detail-people.component.html', | |||||
| styleUrls: ['./loan-detail-people.component.scss'] | |||||
| }) | |||||
| export class LoanDetailPeopleComponent implements OnInit { | |||||
| @Input() Loan: LoanModel; | |||||
| constructor() { } | |||||
| ngOnInit(): void { | |||||
| } | |||||
| } |
| <p>loan-detail-progress works! {{ Loan.Id}} </p> |
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
| import { LoanDetailProgressComponent } from './loan-detail-progress.component'; | |||||
| describe('LoanDetailProgressComponent', () => { | |||||
| let component: LoanDetailProgressComponent; | |||||
| let fixture: ComponentFixture<LoanDetailProgressComponent>; | |||||
| beforeEach(async () => { | |||||
| await TestBed.configureTestingModule({ | |||||
| declarations: [ LoanDetailProgressComponent ] | |||||
| }) | |||||
| .compileComponents(); | |||||
| }); | |||||
| beforeEach(() => { | |||||
| fixture = TestBed.createComponent(LoanDetailProgressComponent); | |||||
| component = fixture.componentInstance; | |||||
| fixture.detectChanges(); | |||||
| }); | |||||
| it('should create', () => { | |||||
| expect(component).toBeTruthy(); | |||||
| }); | |||||
| }); |
| import {Component, Input, OnInit} from '@angular/core'; | |||||
| import {LoanModel} from '../../models/loan.model'; | |||||
| @Component({ | |||||
| selector: 'app-loan-detail-progress', | |||||
| templateUrl: './loan-detail-progress.component.html', | |||||
| styleUrls: ['./loan-detail-progress.component.scss'] | |||||
| }) | |||||
| export class LoanDetailProgressComponent implements OnInit { | |||||
| @Input() Loan: LoanModel; | |||||
| constructor() { } | |||||
| ngOnInit(): void { | |||||
| } | |||||
| } |
| <p>loan-detail-reward works! {{ Loan.Id}}</p> |
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
| import { LoanDetailRewardComponent } from './loan-detail-reward.component'; | |||||
| describe('LoanDetailRewardComponent', () => { | |||||
| let component: LoanDetailRewardComponent; | |||||
| let fixture: ComponentFixture<LoanDetailRewardComponent>; | |||||
| beforeEach(async () => { | |||||
| await TestBed.configureTestingModule({ | |||||
| declarations: [ LoanDetailRewardComponent ] | |||||
| }) | |||||
| .compileComponents(); | |||||
| }); | |||||
| beforeEach(() => { | |||||
| fixture = TestBed.createComponent(LoanDetailRewardComponent); | |||||
| component = fixture.componentInstance; | |||||
| fixture.detectChanges(); | |||||
| }); | |||||
| it('should create', () => { | |||||
| expect(component).toBeTruthy(); | |||||
| }); | |||||
| }); |
| import {Component, Input, OnInit} from '@angular/core'; | |||||
| import {LoanModel} from '../../models/loan.model'; | |||||
| @Component({ | |||||
| selector: 'app-loan-detail-reward', | |||||
| templateUrl: './loan-detail-reward.component.html', | |||||
| styleUrls: ['./loan-detail-reward.component.scss'] | |||||
| }) | |||||
| export class LoanDetailRewardComponent implements OnInit { | |||||
| @Input() Loan: LoanModel; | |||||
| constructor() { } | |||||
| ngOnInit(): void { | |||||
| } | |||||
| } |
| <p>loan-detail-trail works! {{ Loan.Id}}</p> |
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
| import { LoanDetailTrailComponent } from './loan-detail-trail.component'; | |||||
| describe('LoanDetailTrailComponent', () => { | |||||
| let component: LoanDetailTrailComponent; | |||||
| let fixture: ComponentFixture<LoanDetailTrailComponent>; | |||||
| beforeEach(async () => { | |||||
| await TestBed.configureTestingModule({ | |||||
| declarations: [ LoanDetailTrailComponent ] | |||||
| }) | |||||
| .compileComponents(); | |||||
| }); | |||||
| beforeEach(() => { | |||||
| fixture = TestBed.createComponent(LoanDetailTrailComponent); | |||||
| component = fixture.componentInstance; | |||||
| fixture.detectChanges(); | |||||
| }); | |||||
| it('should create', () => { | |||||
| expect(component).toBeTruthy(); | |||||
| }); | |||||
| }); |
| import {Component, Input, OnInit} from '@angular/core'; | |||||
| import {LoanModel} from '../../models/loan.model'; | |||||
| @Component({ | |||||
| selector: 'app-loan-detail-trail', | |||||
| templateUrl: './loan-detail-trail.component.html', | |||||
| styleUrls: ['./loan-detail-trail.component.scss'] | |||||
| }) | |||||
| export class LoanDetailTrailComponent implements OnInit { | |||||
| @Input() Loan: LoanModel; | |||||
| constructor() { } | |||||
| ngOnInit(): void { | |||||
| } | |||||
| } |
| <div class="wrapper"> | |||||
| <kendo-expansionpanel | |||||
| [title]="'Basic Info - ' + Loan.Id" | |||||
| [subtitle]="Loan.Amount | currency " | |||||
| [expanded]="false" | |||||
| > | |||||
| <div class="content"> | |||||
| <app-loan-detail-basic-info [Loan]="Loan"></app-loan-detail-basic-info> | |||||
| </div> | |||||
| </kendo-expansionpanel> | |||||
| <p>loan-detail works!</p> | |||||
| <kendo-expansionpanel | |||||
| [title]="'People'" | |||||
| [subtitle]="Loan.Amount | currency " | |||||
| [expanded]="false" | |||||
| > | |||||
| <div class="content"> | |||||
| <app-loan-detail-people [Loan]="Loan"></app-loan-detail-people> | |||||
| </div> | |||||
| </kendo-expansionpanel> | |||||
| <div style="background-color:yellow;"> {{dataItem.Id}}</div> | |||||
| <kendo-expansionpanel | |||||
| [title]="'Reward'" | |||||
| [subtitle]="Loan.Amount | currency " | |||||
| [expanded]="false" | |||||
| > | |||||
| <div class="content"> | |||||
| <app-loan-detail-reward [Loan]="Loan"></app-loan-detail-reward> | |||||
| </div> | |||||
| </kendo-expansionpanel> | |||||
| <kendo-expansionpanel | |||||
| [title]="'Progress'" | |||||
| [subtitle]="Loan.Amount | currency " | |||||
| [expanded]="false" | |||||
| > | |||||
| <div class="content"> | |||||
| <app-loan-detail-progress [Loan]="Loan"></app-loan-detail-progress> | |||||
| </div> | |||||
| </kendo-expansionpanel> | |||||
| <kendo-expansionpanel | |||||
| [title]="'Trail Income'" | |||||
| [subtitle]="Loan.Amount | currency " | |||||
| [expanded]="false" | |||||
| > | |||||
| <div class="content"> | |||||
| <app-loan-detail-trail [Loan]="Loan"></app-loan-detail-trail> | |||||
| </div> | |||||
| </kendo-expansionpanel> | |||||
| </div> | |||||
| <div style="background-color:yellow;"> {{dataItem.Client}}</div> |
| import {Component, Input, OnInit} from '@angular/core'; | import {Component, Input, OnInit} from '@angular/core'; | ||||
| import {LoanModel} from '../models/loan.model'; | |||||
| @Component({ | @Component({ | ||||
| selector: 'app-loan-detail', | selector: 'app-loan-detail', | ||||
| }) | }) | ||||
| export class LoanDetailComponent implements OnInit { | export class LoanDetailComponent implements OnInit { | ||||
| @Input() public dataItem :any; | |||||
| @Input() public Loan : LoanModel; | |||||
| constructor() { } | constructor() { } | ||||
| ngOnInit(): void { | ngOnInit(): void { |
| export class LoanRowListComponent implements OnInit { | export class LoanRowListComponent implements OnInit { | ||||
| public allLoans: LoanSummaryService; | public allLoans: LoanSummaryService; | ||||
| public skip: number = 0 | public skip: number = 0 | ||||
| public take: number = 10; | |||||
| public take: number = 5; | |||||
| constructor(private lss: LoanSummaryService, private ss: SessionService, private config: AppConfig) { } | constructor(private lss: LoanSummaryService, private ss: SessionService, private config: AppConfig) { } | ||||
| ngOnInit(): void { | ngOnInit(): void { |
| </li> | </li> | ||||
| </ul> | </ul> | ||||
| </div> | </div> | ||||
| <div class="col-md-12"> | |||||
| <app-loan-detail [Loan]="Loan"></app-loan-detail> | |||||
| </div> | |||||
| </div> | </div> | ||||
| </div> | </div> |