Blacked and isorted the python files
Prettied and eslinted the typescript/html files
This commit is contained in:
@ -5,18 +5,31 @@
|
||||
</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">
|
||||
<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()">
|
||||
<input
|
||||
matInput
|
||||
#nameElement
|
||||
placeholder="Name"
|
||||
formControlName="name"
|
||||
(keyup.enter)="save()"
|
||||
/>
|
||||
</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>
|
||||
<button mat-raised-button color="warn" (click)="confirmDelete()" *ngIf="!!item.id">
|
||||
Delete
|
||||
</button>
|
||||
</mat-card-actions>
|
||||
</mat-card>
|
||||
</div>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import {SectionDetailComponent} from './section-detail.component';
|
||||
import { SectionDetailComponent } from './section-detail.component';
|
||||
|
||||
describe('SectionDetailComponent', () => {
|
||||
let component: SectionDetailComponent;
|
||||
@ -8,9 +8,8 @@ describe('SectionDetailComponent', () => {
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [SectionDetailComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
declarations: [SectionDetailComponent],
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
@ -1,17 +1,17 @@
|
||||
import { AfterViewInit, Component, ElementRef, OnInit, ViewChild} from '@angular/core';
|
||||
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 { MatDialog} from '@angular/material/dialog';
|
||||
|
||||
import { SectionService } from '../section.service';
|
||||
import { Section } from '../../core/section';
|
||||
import { ToasterService } from '../../core/toaster.service';
|
||||
import { ConfirmDialogComponent } from '../../shared/confirm-dialog/confirm-dialog.component';
|
||||
import { SectionService } from '../section.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-section-detail',
|
||||
templateUrl: './section-detail.component.html',
|
||||
styleUrls: ['./section-detail.component.css']
|
||||
styleUrls: ['./section-detail.component.css'],
|
||||
})
|
||||
export class SectionDetailComponent implements OnInit, AfterViewInit {
|
||||
@ViewChild('nameElement', { static: true }) nameElement: ElementRef;
|
||||
@ -24,28 +24,27 @@ export class SectionDetailComponent implements OnInit, AfterViewInit {
|
||||
private dialog: MatDialog,
|
||||
private fb: FormBuilder,
|
||||
private toaster: ToasterService,
|
||||
private ser: SectionService
|
||||
private ser: SectionService,
|
||||
) {
|
||||
this.createForm();
|
||||
}
|
||||
|
||||
createForm() {
|
||||
this.form = this.fb.group({
|
||||
name: ''
|
||||
name: '',
|
||||
});
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.route.data
|
||||
.subscribe((data: { item: Section }) => {
|
||||
this.showItem(data.item);
|
||||
});
|
||||
this.route.data.subscribe((data: { item: Section }) => {
|
||||
this.showItem(data.item);
|
||||
});
|
||||
}
|
||||
|
||||
showItem(item: Section) {
|
||||
this.item = item;
|
||||
this.form.setValue({
|
||||
name: this.item.name || ''
|
||||
name: this.item.name || '',
|
||||
});
|
||||
}
|
||||
|
||||
@ -56,35 +55,33 @@ export class SectionDetailComponent implements OnInit, AfterViewInit {
|
||||
}
|
||||
|
||||
save() {
|
||||
this.ser.saveOrUpdate(this.getItem())
|
||||
.subscribe(
|
||||
(result) => {
|
||||
this.toaster.show('Success', '');
|
||||
this.router.navigateByUrl('/sections');
|
||||
},
|
||||
(error) => {
|
||||
this.toaster.show('Danger', error.error);
|
||||
}
|
||||
);
|
||||
this.ser.saveOrUpdate(this.getItem()).subscribe(
|
||||
() => {
|
||||
this.toaster.show('Success', '');
|
||||
this.router.navigateByUrl('/sections');
|
||||
},
|
||||
(error) => {
|
||||
this.toaster.show('Danger', error.error);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
delete() {
|
||||
this.ser.delete(this.item.id)
|
||||
.subscribe(
|
||||
(result) => {
|
||||
this.toaster.show('Success', '');
|
||||
this.router.navigateByUrl('/sections');
|
||||
},
|
||||
(error) => {
|
||||
this.toaster.show('Danger', error.error);
|
||||
}
|
||||
);
|
||||
this.ser.delete(this.item.id).subscribe(
|
||||
() => {
|
||||
this.toaster.show('Success', '');
|
||||
this.router.navigateByUrl('/sections');
|
||||
},
|
||||
(error) => {
|
||||
this.toaster.show('Danger', error.error);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
confirmDelete(): void {
|
||||
const dialogRef = this.dialog.open(ConfirmDialogComponent, {
|
||||
width: '250px',
|
||||
data: {title: 'Delete Section?', content: 'Are you sure? This cannot be undone.'}
|
||||
data: { title: 'Delete Section?', content: 'Are you sure? This cannot be undone.' },
|
||||
});
|
||||
|
||||
dialogRef.afterClosed().subscribe((result: boolean) => {
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
import {inject, TestBed} from '@angular/core/testing';
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
|
||||
import {SectionListResolver} from './section-list-resolver.service';
|
||||
import { SectionListResolver } from './section-list-resolver.service';
|
||||
|
||||
describe('SectionListResolverService', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [SectionListResolver]
|
||||
providers: [SectionListResolver],
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@ -1,18 +1,18 @@
|
||||
import {Injectable} from '@angular/core';
|
||||
import {ActivatedRouteSnapshot, Resolve, Router, RouterStateSnapshot} from '@angular/router';
|
||||
import {Section} from '../core/section';
|
||||
import {Observable} from 'rxjs/internal/Observable';
|
||||
import {SectionService} from './section.service';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Resolve } from '@angular/router';
|
||||
import { Observable } from 'rxjs/internal/Observable';
|
||||
|
||||
import { Section } from '../core/section';
|
||||
|
||||
import { SectionService } from './section.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class SectionListResolver implements Resolve<Section[]> {
|
||||
constructor(private ser: SectionService) {}
|
||||
|
||||
constructor(private ser: SectionService, private router: Router) {
|
||||
}
|
||||
|
||||
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<Section[]> {
|
||||
resolve(): Observable<Section[]> {
|
||||
return this.ser.list();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import { DataSource} from '@angular/cdk/collections';
|
||||
import { Observable, of as observableOf} from 'rxjs';
|
||||
import { Section} from '../../core/section';
|
||||
import { DataSource } from '@angular/cdk/collections';
|
||||
import { Observable, of as observableOf } from 'rxjs';
|
||||
|
||||
import { Section } from '../../core/section';
|
||||
|
||||
export class SectionListDataSource extends DataSource<Section> {
|
||||
|
||||
constructor(public data: Section[]) {
|
||||
super();
|
||||
}
|
||||
@ -12,6 +12,5 @@ export class SectionListDataSource extends DataSource<Section> {
|
||||
return observableOf(this.data);
|
||||
}
|
||||
|
||||
disconnect() {
|
||||
}
|
||||
disconnect() {}
|
||||
}
|
||||
|
||||
@ -8,15 +8,16 @@
|
||||
</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]="['/sections', row.id]">{{row.name}}</a></mat-cell>
|
||||
</ng-container>
|
||||
<mat-cell *matCellDef="let row"
|
||||
><a [routerLink]="['/sections', row.id]">{{ row.name }}</a></mat-cell
|
||||
>
|
||||
</ng-container>
|
||||
|
||||
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
||||
<mat-row *matRowDef="let row; columns: displayedColumns"></mat-row>
|
||||
</mat-table>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import {ComponentFixture, fakeAsync, TestBed} from '@angular/core/testing';
|
||||
import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing';
|
||||
|
||||
import {SectionListComponent} from './section-list.component';
|
||||
import { SectionListComponent } from './section-list.component';
|
||||
|
||||
describe('SectionListComponent', () => {
|
||||
let component: SectionListComponent;
|
||||
@ -8,9 +8,8 @@ describe('SectionListComponent', () => {
|
||||
|
||||
beforeEach(fakeAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [SectionListComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
declarations: [SectionListComponent],
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(SectionListComponent);
|
||||
component = fixture.componentInstance;
|
||||
|
||||
@ -1,12 +1,14 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { SectionListDataSource } from './section-list-datasource';
|
||||
import { Section } from '../../core/section';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
|
||||
import { Section } from '../../core/section';
|
||||
|
||||
import { SectionListDataSource } from './section-list-datasource';
|
||||
|
||||
@Component({
|
||||
selector: 'app-section-list',
|
||||
templateUrl: './section-list.component.html',
|
||||
styleUrls: ['./section-list.component.css']
|
||||
styleUrls: ['./section-list.component.css'],
|
||||
})
|
||||
export class SectionListComponent implements OnInit {
|
||||
dataSource: SectionListDataSource;
|
||||
@ -14,14 +16,12 @@ export class SectionListComponent implements OnInit {
|
||||
/** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */
|
||||
displayedColumns = ['name'];
|
||||
|
||||
constructor(private route: ActivatedRoute) {
|
||||
}
|
||||
constructor(private route: ActivatedRoute) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.route.data
|
||||
.subscribe((data: { list: Section[] }) => {
|
||||
this.list = data.list;
|
||||
});
|
||||
this.route.data.subscribe((data: { list: Section[] }) => {
|
||||
this.list = data.list;
|
||||
});
|
||||
this.dataSource = new SectionListDataSource(this.list);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
import {inject, TestBed} from '@angular/core/testing';
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
|
||||
import {SectionResolver} from './section-resolver.service';
|
||||
import { SectionResolver } from './section-resolver.service';
|
||||
|
||||
describe('SectionResolver', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [SectionResolver]
|
||||
providers: [SectionResolver],
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@ -1,18 +1,18 @@
|
||||
import {Injectable} from '@angular/core';
|
||||
import {ActivatedRouteSnapshot, Resolve, Router, RouterStateSnapshot} from '@angular/router';
|
||||
import {SectionService} from './section.service';
|
||||
import {Section} from '../core/section';
|
||||
import {Observable} from 'rxjs/internal/Observable';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
|
||||
import { Observable } from 'rxjs/internal/Observable';
|
||||
|
||||
import { Section } from '../core/section';
|
||||
|
||||
import { SectionService } from './section.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class SectionResolver implements Resolve<Section> {
|
||||
constructor(private ser: SectionService) {}
|
||||
|
||||
constructor(private ser: SectionService, private router: Router) {
|
||||
}
|
||||
|
||||
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<Section> {
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<Section> {
|
||||
const id = route.paramMap.get('id');
|
||||
return this.ser.get(id);
|
||||
}
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
import {inject, TestBed} from '@angular/core/testing';
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
|
||||
import {SectionService} from './section.service';
|
||||
import { SectionService } from './section.service';
|
||||
|
||||
describe('SectionService', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [SectionService]
|
||||
providers: [SectionService],
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@ -1,64 +1,68 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||
import { ErrorLoggerService } from '../core/error-logger.service';
|
||||
import { catchError } from 'rxjs/operators';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Observable } from 'rxjs/internal/Observable';
|
||||
import { catchError } from 'rxjs/operators';
|
||||
|
||||
import { ErrorLoggerService } from '../core/error-logger.service';
|
||||
import { Section } from '../core/section';
|
||||
|
||||
const httpOptions = {
|
||||
headers: new HttpHeaders({'Content-Type': 'application/json'})
|
||||
headers: new HttpHeaders({ 'Content-Type': 'application/json' }),
|
||||
};
|
||||
const url = '/api/sections';
|
||||
const serviceName = 'SectionService';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class SectionService {
|
||||
constructor(private http: HttpClient, private log: ErrorLoggerService) {
|
||||
}
|
||||
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
|
||||
|
||||
get(id: string): Observable<Section> {
|
||||
const getUrl: string = (id === null) ? url : `${url}/${id}`;
|
||||
return <Observable<Section>>this.http.get<Section>(getUrl)
|
||||
.pipe(
|
||||
catchError(this.log.handleError(serviceName, `get id=${id}`))
|
||||
);
|
||||
const getUrl: string = id === null ? url : `${url}/${id}`;
|
||||
return <Observable<Section>>(
|
||||
this.http
|
||||
.get<Section>(getUrl)
|
||||
.pipe(catchError(this.log.handleError(serviceName, `get id=${id}`)))
|
||||
);
|
||||
}
|
||||
|
||||
list(): Observable<Section[]> {
|
||||
return <Observable<Section[]>>this.http.get<Section[]>(`${url}/list`)
|
||||
.pipe(
|
||||
catchError(this.log.handleError(serviceName, 'list'))
|
||||
);
|
||||
return <Observable<Section[]>>(
|
||||
this.http
|
||||
.get<Section[]>(`${url}/list`)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'list')))
|
||||
);
|
||||
}
|
||||
|
||||
save(section: Section): Observable<Section> {
|
||||
return <Observable<Section>>this.http.post<Section>(url, section, httpOptions)
|
||||
.pipe(
|
||||
catchError(this.log.handleError(serviceName, 'save'))
|
||||
);
|
||||
return <Observable<Section>>(
|
||||
this.http
|
||||
.post<Section>(url, section, httpOptions)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'save')))
|
||||
);
|
||||
}
|
||||
|
||||
update(section: Section): Observable<Section> {
|
||||
return <Observable<Section>>this.http.put<Section>(`${url}/${section.id}`, section, httpOptions)
|
||||
.pipe(
|
||||
catchError(this.log.handleError(serviceName, 'update'))
|
||||
);
|
||||
return <Observable<Section>>(
|
||||
this.http
|
||||
.put<Section>(`${url}/${section.id}`, section, httpOptions)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'update')))
|
||||
);
|
||||
}
|
||||
|
||||
saveOrUpdate(section: Section): Observable<Section> {
|
||||
if (!section.id) {
|
||||
return this.save(section);
|
||||
} else {
|
||||
return this.update(section);
|
||||
}
|
||||
return this.update(section);
|
||||
}
|
||||
|
||||
delete(id: string): Observable<Section> {
|
||||
return <Observable<Section>>this.http.delete<Section>(`${url}/${id}`, httpOptions)
|
||||
.pipe(
|
||||
catchError(this.log.handleError(serviceName, 'delete'))
|
||||
);
|
||||
return <Observable<Section>>(
|
||||
this.http
|
||||
.delete<Section>(`${url}/${id}`, httpOptions)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'delete')))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {SectionsRoutingModule} from './sections-routing.module';
|
||||
import { SectionsRoutingModule } from './sections-routing.module';
|
||||
|
||||
describe('SectionsRoutingModule', () => {
|
||||
let sectionsRoutingModule: SectionsRoutingModule;
|
||||
|
||||
@ -1,11 +1,13 @@
|
||||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {RouterModule, Routes} from '@angular/router';
|
||||
import {SectionListResolver} from './section-list-resolver.service';
|
||||
import {SectionResolver} from './section-resolver.service';
|
||||
import {SectionListComponent} from './section-list/section-list.component';
|
||||
import {SectionDetailComponent} from './section-detail/section-detail.component';
|
||||
import {AuthGuard} from '../auth/auth-guard.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
|
||||
import { AuthGuard } from '../auth/auth-guard.service';
|
||||
|
||||
import { SectionDetailComponent } from './section-detail/section-detail.component';
|
||||
import { SectionListResolver } from './section-list-resolver.service';
|
||||
import { SectionListComponent } from './section-list/section-list.component';
|
||||
import { SectionResolver } from './section-resolver.service';
|
||||
|
||||
const sectionsRoutes: Routes = [
|
||||
{
|
||||
@ -13,49 +15,39 @@ const sectionsRoutes: Routes = [
|
||||
component: SectionListComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
permission: 'Sections'
|
||||
permission: 'Sections',
|
||||
},
|
||||
resolve: {
|
||||
list: SectionListResolver
|
||||
}
|
||||
list: SectionListResolver,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'new',
|
||||
component: SectionDetailComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
permission: 'Sections'
|
||||
permission: 'Sections',
|
||||
},
|
||||
resolve: {
|
||||
item: SectionResolver
|
||||
}
|
||||
item: SectionResolver,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: ':id',
|
||||
component: SectionDetailComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
permission: 'Sections'
|
||||
permission: 'Sections',
|
||||
},
|
||||
resolve: {
|
||||
item: SectionResolver
|
||||
}
|
||||
}
|
||||
item: SectionResolver,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
RouterModule.forChild(sectionsRoutes)
|
||||
|
||||
],
|
||||
exports: [
|
||||
RouterModule
|
||||
],
|
||||
providers: [
|
||||
SectionListResolver,
|
||||
SectionResolver
|
||||
]
|
||||
imports: [CommonModule, RouterModule.forChild(sectionsRoutes)],
|
||||
exports: [RouterModule],
|
||||
providers: [SectionListResolver, SectionResolver],
|
||||
})
|
||||
export class SectionsRoutingModule {
|
||||
}
|
||||
export class SectionsRoutingModule {}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {SectionsModule} from './sections.module';
|
||||
import { SectionsModule } from './sections.module';
|
||||
|
||||
describe('SectionsModule', () => {
|
||||
let sectionsModule: SectionsModule;
|
||||
|
||||
@ -1,18 +1,18 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CdkTableModule } from '@angular/cdk/table';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { SectionListComponent } from './section-list/section-list.component';
|
||||
import { SectionDetailComponent } from './section-detail/section-detail.component';
|
||||
import { SectionsRoutingModule } from './sections-routing.module';
|
||||
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 { CdkTableModule } from '@angular/cdk/table';
|
||||
import { ReactiveFormsModule } from '@angular/forms';
|
||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
|
||||
import { SectionDetailComponent } from './section-detail/section-detail.component';
|
||||
import { SectionListComponent } from './section-list/section-list.component';
|
||||
import { SectionsRoutingModule } from './sections-routing.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
@ -26,12 +26,8 @@ import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
MatProgressSpinnerModule,
|
||||
MatTableModule,
|
||||
ReactiveFormsModule,
|
||||
SectionsRoutingModule
|
||||
SectionsRoutingModule,
|
||||
],
|
||||
declarations: [
|
||||
SectionListComponent,
|
||||
SectionDetailComponent
|
||||
]
|
||||
declarations: [SectionListComponent, SectionDetailComponent],
|
||||
})
|
||||
export class SectionsModule {
|
||||
}
|
||||
export class SectionsModule {}
|
||||
|
||||
Reference in New Issue
Block a user