mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
committed by
mmalerba
parent
b3a493c584
commit
97447f9349
@@ -1,4 +1,4 @@
|
||||
import {Component, OnInit, ViewChild} from '@angular/core';
|
||||
import {Component, AfterViewInit, ViewChild} from '@angular/core';
|
||||
import {HttpClient} from '@angular/common/http';
|
||||
import {MatPaginator, MatSort, MatTableDataSource} from '@angular/material';
|
||||
import {Observable} from 'rxjs/Observable';
|
||||
@@ -17,7 +17,7 @@ import 'rxjs/add/operator/switchMap';
|
||||
styleUrls: ['table-http-example.css'],
|
||||
templateUrl: 'table-http-example.html',
|
||||
})
|
||||
export class TableHttpExample {
|
||||
export class TableHttpExample implements AfterViewInit {
|
||||
displayedColumns = ['created', 'state', 'number', 'title'];
|
||||
exampleDatabase: ExampleHttpDao | null;
|
||||
dataSource = new MatTableDataSource();
|
||||
|
||||
Reference in New Issue
Block a user