import {NgModule, Component, OnInit, OnDestroy,ElementRef,ContentChild } from '@angular/core'; @Component({ selector: 'cm-table-doc-3', templateUrl: 'table-doc-3.component.html', styleUrls: ['./table-doc-3.component.css'] }) export class TableDoc3Component implements OnInit, OnDestroy { ngOnInit() { }; ngOnDestroy() { }; data = [ { key: '1', name: 'John Brown', age: 33, address: 'New York No. 1 Lake ParkNew York No. 1 Lake ParkNew York No. 1 Lake ParkNew York No. 1 Lake Park', fixed:'left', width:'200px' }, { key: '3', name: 'Jim GreenJim GreenJim GreenJim Green', age: 43, address: 'London No. 1 Lake Park', }, { key: '3', name: 'Joe Black', age: 33, address: 'Sidney No. 1 Lake Park', }, { key: '4', name: 'John Brown', age: 33, address: 'New York No. 1 Lake ParkNew York No. 1 Lake ParkNew York No. 1 Lake ParkNew York No. 1 Lake Park', }, { key: '5', name: 'Jim GreenJim GreenJim GreenJim Green', age: 43, address: 'London No. 1 Lake Park', }, { key: '9', name: 'Joe Black', age: 33, address: 'Sidney No. 1 Lake Park', fixed:'right', width:"100px" } ]; }