Blacked and isorted the python files
Prettied and eslinted the typescript/html files
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user