MCPcopy Create free account
hub / github.com/angular/components / constructor

Method constructor

src/material/table/table.spec.ts:932–943  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

930 @ViewChild(MatSort) sort!: MatSort;
931
932 constructor() {
933 this.underlyingDataSource.data = [];
934
935 // Add three rows of data
936 this.underlyingDataSource.addData();
937 this.underlyingDataSource.addData();
938 this.underlyingDataSource.addData();
939
940 this.underlyingDataSource.connect().subscribe(data => {
941 this.dataSource.data = data;
942 });
943 }
944
945 ngOnInit() {
946 this.dataSource!.sort = this.sort;

Callers

nothing calls this directly

Calls 2

addDataMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected