refactor: Clients Module
- refactors clients-routing.module.ts for dynamic breadcrumbs. - refactors clients.service.ts to use HttpClient - adds resolver to load client data - removes partially implemented components fixes: #409
This commit is contained in:
committed by
Abhay Chawla
parent
bab75357b4
commit
963ec68527
@@ -1,55 +1,26 @@
|
||||
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { HttpModule } from '@angular/http';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { CoreModule } from '../core/core.module';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
import { ArchwizardModule } from 'angular-archwizard';
|
||||
/** Angular Imports */
|
||||
import { NgModule } from '@angular/core';
|
||||
import { DatePipe } from '@angular/common';
|
||||
|
||||
/** Custom Modules */
|
||||
import { ClientsRoutingModule } from './clients-routing.module';
|
||||
import { SharedModule } from 'app/shared/shared.module';
|
||||
|
||||
/** Custom Components */
|
||||
import { ClientsComponent } from './clients.component';
|
||||
import { CreateClientComponent} from './create-client/create-client.component';
|
||||
import { ViewClientComponent } from './view-client/view-client.component';
|
||||
import { ViewLoanComponent } from './view-loan/view-loan.component';
|
||||
import { CreateAddressComponent } from './create-address/create-address.component';
|
||||
import { CreateIdentityComponent } from './create-identity/create-identity.component';
|
||||
|
||||
import { ClientsService } from './clients.service';
|
||||
import { UploadDocumentComponent } from './upload-document/upload-document.component';
|
||||
import { EditAddressComponent } from './edit-address/edit-address.component';
|
||||
|
||||
/**
|
||||
* Clients Module
|
||||
*
|
||||
* All components related to Clients should be declared here.
|
||||
*/
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule,
|
||||
CommonModule,
|
||||
ClientsRoutingModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
FlexLayoutModule,
|
||||
BrowserModule, // tslint:disable
|
||||
HttpModule,
|
||||
MatTableModule,
|
||||
ArchwizardModule,
|
||||
SharedModule,
|
||||
ClientsRoutingModule
|
||||
],
|
||||
declarations: [
|
||||
ClientsComponent,
|
||||
CreateClientComponent,
|
||||
ViewClientComponent,
|
||||
ViewLoanComponent,
|
||||
CreateAddressComponent,
|
||||
CreateIdentityComponent,
|
||||
UploadDocumentComponent,
|
||||
EditAddressComponent
|
||||
],
|
||||
providers: [
|
||||
ClientsService,
|
||||
HttpModule // tslint:disable
|
||||
],
|
||||
schemas: [
|
||||
CUSTOM_ELEMENTS_SCHEMA
|
||||
]
|
||||
declarations: [ClientsComponent],
|
||||
providers: [DatePipe]
|
||||
|
||||
})
|
||||
export class ClientsModule { }
|
||||
|
||||
Reference in New Issue
Block a user