Initial Commit
This commit is contained in:
@ -0,0 +1,3 @@
|
||||
.right-align {
|
||||
text-align: right;
|
||||
}
|
||||
@ -0,0 +1,75 @@
|
||||
<div fxLayout="row" fxFlex="50%" fxLayoutAlign="space-around center" class="example-card">
|
||||
<mat-card fxFlex>
|
||||
<mat-card-title-group>
|
||||
<mat-card-title>Advocate</mat-card-title>
|
||||
</mat-card-title-group>
|
||||
<mat-card-content>
|
||||
<form [formGroup]="form" fxLayout="column">
|
||||
<div
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="space-around start"
|
||||
fxLayout.lt-md="column"
|
||||
fxLayoutGap="20px"
|
||||
fxLayoutGap.lt-md="0px"
|
||||
>
|
||||
<mat-form-field fxFlex>
|
||||
<mat-label>Name</mat-label>
|
||||
<input
|
||||
matInput
|
||||
#nameElement
|
||||
placeholder="Name"
|
||||
formControlName="name"
|
||||
(keyup.enter)="save()"
|
||||
/>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="space-around start"
|
||||
fxLayout.lt-md="column"
|
||||
fxLayoutGap="20px"
|
||||
fxLayoutGap.lt-md="0px"
|
||||
>
|
||||
<mat-form-field fxFlex>
|
||||
<mat-label>Mobile</mat-label>
|
||||
<input matInput placeholder="Mobile" formControlName="mobile" />
|
||||
</mat-form-field>
|
||||
<mat-form-field fxFlex>
|
||||
<mat-label>Land Line</mat-label>
|
||||
<input matInput placeholder="Landline" formControlName="landline" />
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="space-around start"
|
||||
fxLayout.lt-md="column"
|
||||
fxLayoutGap="20px"
|
||||
fxLayoutGap.lt-md="0px"
|
||||
>
|
||||
<mat-form-field fxFlex>
|
||||
<mat-label>Email</mat-label>
|
||||
<input matInput placeholder="Email" formControlName="email" />
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div
|
||||
fxLayout="row"
|
||||
fxLayoutAlign="space-around start"
|
||||
fxLayout.lt-md="column"
|
||||
fxLayoutGap="20px"
|
||||
fxLayoutGap.lt-md="0px"
|
||||
>
|
||||
<mat-form-field fxFlex>
|
||||
<mat-label>Address</mat-label>
|
||||
<input matInput placeholder="Address" formControlName="address" />
|
||||
</mat-form-field>
|
||||
</div>
|
||||
</form>
|
||||
</mat-card-content>
|
||||
<mat-card-actions>
|
||||
<button mat-raised-button color="primary" (click)="save()">Save</button>
|
||||
<button mat-raised-button color="warn" (click)="confirmDelete()" *ngIf="!!item.id">
|
||||
Delete
|
||||
</button>
|
||||
</mat-card-actions>
|
||||
</mat-card>
|
||||
</div>
|
||||
@ -0,0 +1,26 @@
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
|
||||
import { AdvocateDetailComponent } from './advocate-detail.component';
|
||||
|
||||
describe('AdvocateDetailComponent', () => {
|
||||
let component: AdvocateDetailComponent;
|
||||
let fixture: ComponentFixture<AdvocateDetailComponent>;
|
||||
|
||||
beforeEach(
|
||||
waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [AdvocateDetailComponent],
|
||||
}).compileComponents();
|
||||
}),
|
||||
);
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(AdvocateDetailComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,111 @@
|
||||
import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angular/core';
|
||||
import { FormBuilder, FormGroup } from '@angular/forms';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
|
||||
import { Advocate } from '../../core/advocate';
|
||||
import { ToasterService } from '../../core/toaster.service';
|
||||
import { ConfirmDialogComponent } from '../../shared/confirm-dialog/confirm-dialog.component';
|
||||
import { AdvocateService } from '../advocate.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-advocate-detail',
|
||||
templateUrl: './advocate-detail.component.html',
|
||||
styleUrls: ['./advocate-detail.component.css'],
|
||||
})
|
||||
export class AdvocateDetailComponent implements OnInit, AfterViewInit {
|
||||
@ViewChild('nameElement', { static: true }) nameElement?: ElementRef;
|
||||
form: FormGroup;
|
||||
item: Advocate = new Advocate();
|
||||
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
private router: Router,
|
||||
private dialog: MatDialog,
|
||||
private fb: FormBuilder,
|
||||
private toaster: ToasterService,
|
||||
private ser: AdvocateService,
|
||||
) {
|
||||
// Create form
|
||||
this.form = this.fb.group({
|
||||
name: '',
|
||||
mobile: '',
|
||||
landline: '',
|
||||
email: '',
|
||||
address: '',
|
||||
});
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.route.data.subscribe((value) => {
|
||||
const data = value as { item: Advocate };
|
||||
this.showItem(data.item);
|
||||
});
|
||||
}
|
||||
|
||||
showItem(item: Advocate) {
|
||||
this.item = item;
|
||||
this.form.setValue({
|
||||
name: this.item.name || '',
|
||||
mobile: this.item.mobile || '',
|
||||
landline: this.item.landline || '',
|
||||
email: this.item.email || '',
|
||||
address: this.item.address || '',
|
||||
});
|
||||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
setTimeout(() => {
|
||||
if (this.nameElement !== undefined) {
|
||||
this.nameElement.nativeElement.focus();
|
||||
}
|
||||
}, 0);
|
||||
}
|
||||
|
||||
save() {
|
||||
this.ser.saveOrUpdate(this.getItem()).subscribe(
|
||||
() => {
|
||||
this.toaster.show('Success', '');
|
||||
this.router.navigateByUrl('/advocates');
|
||||
},
|
||||
(error) => {
|
||||
this.toaster.show('Error', error);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
delete() {
|
||||
this.ser.delete(this.item.id as string).subscribe(
|
||||
() => {
|
||||
this.toaster.show('Success', '');
|
||||
this.router.navigateByUrl('/advocates');
|
||||
},
|
||||
(error) => {
|
||||
this.toaster.show('Error', error);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
confirmDelete(): void {
|
||||
const dialogRef = this.dialog.open(ConfirmDialogComponent, {
|
||||
width: '250px',
|
||||
data: { title: 'Delete Advocate?', content: 'Are you sure? This cannot be undone.' },
|
||||
});
|
||||
|
||||
dialogRef.afterClosed().subscribe((result: boolean) => {
|
||||
if (result) {
|
||||
this.delete();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
getItem(): Advocate {
|
||||
const formModel = this.form.value;
|
||||
this.item.name = formModel.name;
|
||||
this.item.mobile = formModel.mobile;
|
||||
this.item.landline = formModel.landline;
|
||||
this.item.email = formModel.email;
|
||||
this.item.address = formModel.address;
|
||||
return this.item;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { AdvocateListResolver } from './advocate-list-resolver.service';
|
||||
|
||||
describe('AdvocateListResolverService', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [AdvocateListResolver],
|
||||
});
|
||||
});
|
||||
|
||||
it('should be created', inject([AdvocateListResolver], (service: AdvocatesListResolver) => {
|
||||
expect(service).toBeTruthy();
|
||||
}));
|
||||
});
|
||||
18
otis/src/app/advocates/advocate-list-resolver.service.ts
Normal file
18
otis/src/app/advocates/advocate-list-resolver.service.ts
Normal file
@ -0,0 +1,18 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Resolve } from '@angular/router';
|
||||
import { Observable } from 'rxjs/internal/Observable';
|
||||
|
||||
import { Advocate } from '../core/advocate';
|
||||
|
||||
import { AdvocateService } from './advocate.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class AdvocateListResolver implements Resolve<Advocate[]> {
|
||||
constructor(private ser: AdvocateService) {}
|
||||
|
||||
resolve(): Observable<Advocate[]> {
|
||||
return this.ser.list();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
import { DataSource } from '@angular/cdk/collections';
|
||||
import { Observable, of as observableOf } from 'rxjs';
|
||||
|
||||
import { Advocate } from '../../core/advocate';
|
||||
|
||||
export class AdvocateListDataSource extends DataSource<Advocate> {
|
||||
constructor(public data: Advocate[]) {
|
||||
super();
|
||||
}
|
||||
|
||||
connect(): Observable<Advocate[]> {
|
||||
return observableOf(this.data);
|
||||
}
|
||||
|
||||
disconnect() {}
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
<mat-card>
|
||||
<mat-card-title-group>
|
||||
<mat-card-title>Advocates</mat-card-title>
|
||||
<a mat-button [routerLink]="['/advocates', 'new']">
|
||||
<mat-icon>add_box</mat-icon>
|
||||
Add
|
||||
</a>
|
||||
</mat-card-title-group>
|
||||
<mat-card-content>
|
||||
<mat-table #table [dataSource]="dataSource" aria-label="Elements">
|
||||
<!-- Name Column -->
|
||||
<ng-container matColumnDef="name">
|
||||
<mat-header-cell *matHeaderCellDef>Name</mat-header-cell>
|
||||
<mat-cell *matCellDef="let row"
|
||||
><a [routerLink]="['/advocates', row.id]">{{ row.name }}</a></mat-cell
|
||||
>
|
||||
</ng-container>
|
||||
|
||||
<!-- Mobile Column -->
|
||||
<ng-container matColumnDef="mobile">
|
||||
<mat-header-cell *matHeaderCellDef>Mobile</mat-header-cell>
|
||||
<mat-cell *matCellDef="let row">{{ row.mobile }}</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
<!-- Landline Column -->
|
||||
<ng-container matColumnDef="landline">
|
||||
<mat-header-cell *matHeaderCellDef>Landline</mat-header-cell>
|
||||
<mat-cell *matCellDef="let row">{{ row.landline }}</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
<!-- Email Column -->
|
||||
<ng-container matColumnDef="email">
|
||||
<mat-header-cell *matHeaderCellDef>Email</mat-header-cell>
|
||||
<mat-cell *matCellDef="let row">{{ row.email }}</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
<!-- Address Column -->
|
||||
<ng-container matColumnDef="address">
|
||||
<mat-header-cell *matHeaderCellDef>Address</mat-header-cell>
|
||||
<mat-cell *matCellDef="let row">{{ row.address }}</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||
<mat-row *matRowDef="let row; columns: displayedColumns"></mat-row>
|
||||
</mat-table>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
@ -0,0 +1,22 @@
|
||||
import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { AdvocateListComponent } from './advocate-list.component';
|
||||
|
||||
describe('AdvocateListComponent', () => {
|
||||
let component: AdvocateListComponent;
|
||||
let fixture: ComponentFixture<AdvocateListComponent>;
|
||||
|
||||
beforeEach(fakeAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [AdvocateListComponent],
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(AdvocateListComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should compile', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,28 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
|
||||
import { Advocate } from '../../core/advocate';
|
||||
|
||||
import { AdvocateListDataSource } from './advocate-list-datasource';
|
||||
|
||||
@Component({
|
||||
selector: 'app-advocate-list',
|
||||
templateUrl: './advocate-list.component.html',
|
||||
styleUrls: ['./advocate-list.component.css'],
|
||||
})
|
||||
export class AdvocateListComponent implements OnInit {
|
||||
list: Advocate[] = [];
|
||||
dataSource: AdvocateListDataSource = new AdvocateListDataSource(this.list);
|
||||
/** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */
|
||||
displayedColumns = ['name', 'mobile', 'landline', 'email', 'address'];
|
||||
|
||||
constructor(private route: ActivatedRoute) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.route.data.subscribe((value) => {
|
||||
const data = value as { list: Advocate[] };
|
||||
this.list = data.list;
|
||||
});
|
||||
this.dataSource = new AdvocateListDataSource(this.list);
|
||||
}
|
||||
}
|
||||
15
otis/src/app/advocates/advocate-resolver.service.spec.ts
Normal file
15
otis/src/app/advocates/advocate-resolver.service.spec.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { AdvocateResolver } from './advocate-resolver.service';
|
||||
|
||||
describe('AdvocateResolver', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [AdvocateResolver],
|
||||
});
|
||||
});
|
||||
|
||||
it('should be created', inject([AdvocateResolver], (service: AdvocateResolver) => {
|
||||
expect(service).toBeTruthy();
|
||||
}));
|
||||
});
|
||||
19
otis/src/app/advocates/advocate-resolver.service.ts
Normal file
19
otis/src/app/advocates/advocate-resolver.service.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
|
||||
import { Observable } from 'rxjs/internal/Observable';
|
||||
|
||||
import { Advocate } from '../core/advocate';
|
||||
|
||||
import { AdvocateService } from './advocate.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class AdvocateResolver implements Resolve<Advocate> {
|
||||
constructor(private ser: AdvocateService) {}
|
||||
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<Advocate> {
|
||||
const id = route.paramMap.get('id');
|
||||
return this.ser.get(id);
|
||||
}
|
||||
}
|
||||
15
otis/src/app/advocates/advocate.service.spec.ts
Normal file
15
otis/src/app/advocates/advocate.service.spec.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { AdvocateService } from './advocate.service';
|
||||
|
||||
describe('AdvocateService', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [AdvocateService],
|
||||
});
|
||||
});
|
||||
|
||||
it('should be created', inject([AdvocateService], (service: AdvocateService) => {
|
||||
expect(service).toBeTruthy();
|
||||
}));
|
||||
});
|
||||
58
otis/src/app/advocates/advocate.service.ts
Normal file
58
otis/src/app/advocates/advocate.service.ts
Normal file
@ -0,0 +1,58 @@
|
||||
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Observable } from 'rxjs/internal/Observable';
|
||||
import { catchError } from 'rxjs/operators';
|
||||
|
||||
import { Advocate } from '../core/advocate';
|
||||
import { ErrorLoggerService } from '../core/error-logger.service';
|
||||
|
||||
const httpOptions = {
|
||||
headers: new HttpHeaders({ 'Content-Type': 'application/json' }),
|
||||
};
|
||||
const url = '/api/advocates';
|
||||
const serviceName = 'AdvocateService';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class AdvocateService {
|
||||
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
|
||||
|
||||
get(id: string | null): Observable<Advocate> {
|
||||
const getUrl: string = id === null ? url : `${url}/${id}`;
|
||||
return this.http
|
||||
.get<Advocate>(getUrl)
|
||||
.pipe(catchError(this.log.handleError(serviceName, `get id=${id}`))) as Observable<Advocate>;
|
||||
}
|
||||
|
||||
list(): Observable<Advocate[]> {
|
||||
return this.http
|
||||
.get<Advocate[]>(`${url}/list`)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'list'))) as Observable<Advocate[]>;
|
||||
}
|
||||
|
||||
save(advocate: Advocate): Observable<Advocate> {
|
||||
return this.http
|
||||
.post<Advocate>(url, advocate, httpOptions)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'save'))) as Observable<Advocate>;
|
||||
}
|
||||
|
||||
update(advocate: Advocate): Observable<Advocate> {
|
||||
return this.http
|
||||
.put<Advocate>(`${url}/${advocate.id}`, advocate, httpOptions)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'update'))) as Observable<Advocate>;
|
||||
}
|
||||
|
||||
saveOrUpdate(advocate: Advocate): Observable<Advocate> {
|
||||
if (!advocate.id) {
|
||||
return this.save(advocate);
|
||||
}
|
||||
return this.update(advocate);
|
||||
}
|
||||
|
||||
delete(id: string): Observable<Advocate> {
|
||||
return this.http
|
||||
.delete<Advocate>(`${url}/${id}`, httpOptions)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'delete'))) as Observable<Advocate>;
|
||||
}
|
||||
}
|
||||
13
otis/src/app/advocates/advocates-routing.module.spec.ts
Normal file
13
otis/src/app/advocates/advocates-routing.module.spec.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { AdvocatesRoutingModule } from './advocates-routing.module';
|
||||
|
||||
describe('AdvocatesRoutingModule', () => {
|
||||
let advocatesRoutingModule: AdvocatesRoutingModule;
|
||||
|
||||
beforeEach(() => {
|
||||
advocatesRoutingModule = new AdvocatesRoutingModule();
|
||||
});
|
||||
|
||||
it('should create an instance', () => {
|
||||
expect(advocatesRoutingModule).toBeTruthy();
|
||||
});
|
||||
});
|
||||
53
otis/src/app/advocates/advocates-routing.module.ts
Normal file
53
otis/src/app/advocates/advocates-routing.module.ts
Normal file
@ -0,0 +1,53 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
|
||||
import { AuthGuard } from '../auth/auth-guard.service';
|
||||
|
||||
import { AdvocateDetailComponent } from './advocate-detail/advocate-detail.component';
|
||||
import { AdvocateListResolver } from './advocate-list-resolver.service';
|
||||
import { AdvocateListComponent } from './advocate-list/advocate-list.component';
|
||||
import { AdvocateResolver } from './advocate-resolver.service';
|
||||
|
||||
const advocatesRoutes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: AdvocateListComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
permission: 'Advocates',
|
||||
},
|
||||
resolve: {
|
||||
list: AdvocateListResolver,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'new',
|
||||
component: AdvocateDetailComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
permission: 'Advocates',
|
||||
},
|
||||
resolve: {
|
||||
item: AdvocateResolver,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: ':id',
|
||||
component: AdvocateDetailComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
permission: 'Advocates',
|
||||
},
|
||||
resolve: {
|
||||
item: AdvocateResolver,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule, RouterModule.forChild(advocatesRoutes)],
|
||||
exports: [RouterModule],
|
||||
providers: [AdvocateListResolver, AdvocateResolver],
|
||||
})
|
||||
export class AdvocatesRoutingModule {}
|
||||
13
otis/src/app/advocates/advocates.module.spec.ts
Normal file
13
otis/src/app/advocates/advocates.module.spec.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { AdvocatesModule } from './advocates.module';
|
||||
|
||||
describe('AdvocatesModule', () => {
|
||||
let advocatesModule: AdvocatesModule;
|
||||
|
||||
beforeEach(() => {
|
||||
advocatesModule = new AdvocatesModule();
|
||||
});
|
||||
|
||||
it('should create an instance', () => {
|
||||
expect(advocatesModule).toBeTruthy();
|
||||
});
|
||||
});
|
||||
33
otis/src/app/advocates/advocates.module.ts
Normal file
33
otis/src/app/advocates/advocates.module.ts
Normal file
@ -0,0 +1,33 @@
|
||||
import { CdkTableModule } from '@angular/cdk/table';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
import { ReactiveFormsModule } from '@angular/forms';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
|
||||
import { AdvocateDetailComponent } from './advocate-detail/advocate-detail.component';
|
||||
import { AdvocateListComponent } from './advocate-list/advocate-list.component';
|
||||
import { AdvocatesRoutingModule } from './advocates-routing.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
CdkTableModule,
|
||||
FlexLayoutModule,
|
||||
MatButtonModule,
|
||||
MatCardModule,
|
||||
MatIconModule,
|
||||
MatInputModule,
|
||||
MatProgressSpinnerModule,
|
||||
MatTableModule,
|
||||
ReactiveFormsModule,
|
||||
AdvocatesRoutingModule,
|
||||
],
|
||||
declarations: [AdvocateListComponent, AdvocateDetailComponent],
|
||||
})
|
||||
export class AdvocatesModule {}
|
||||
Reference in New Issue
Block a user