import { Component, OnInit, OnDestroy,ElementRef } from '@angular/core'; @Component({ selector: 'cm-table-doc-2', templateUrl: 'table-doc-2.component.html', styleUrls: ['./table-doc-2.component.css'] }) export class TableDoc2Component implements OnInit, OnDestroy { constructor() { } ngOnInit() { }; ngOnDestroy() { }; data = [ { key: '1', name: 'John Brown', age: 32, address: 'New York No. 1 Lake ParkNew York No. 1 Lake ParkNew York No. 1 Lake ParkNew York No. 1 Lake Park', }, { key: '2', name: 'Jim GreenJim GreenJim GreenJim Green', age: 42, address: 'London No. 1 Lake Park', }, { key: '3', name: 'Joe Black', age: 32, address: 'Sidney No. 1 Lake Park', } ]; }