2019-06-15 07:34:25 +00:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
|
|
|
import { ActivatedRoute } from "@angular/router";
|
2019-07-06 08:16:18 +00:00
|
|
|
import { Table } from "../../core/table";
|
2019-06-15 07:34:25 +00:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-running-tables',
|
|
|
|
templateUrl: './running-tables.component.html',
|
|
|
|
styleUrls: ['./running-tables.component.css']
|
|
|
|
})
|
|
|
|
export class RunningTablesComponent implements OnInit {
|
|
|
|
list: Table[];
|
|
|
|
|
|
|
|
constructor(private route: ActivatedRoute) {
|
|
|
|
}
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
this.route.data
|
|
|
|
.subscribe((data: { list: Table[] }) => {
|
|
|
|
this.list = data.list;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|