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

Method constructor

src/material/table/table-data-source.ts:254–258  ·  view source on GitHub ↗
(initialData: T[] = [])

Source from the content-addressed store, hash-verified

252 };
253
254 constructor(initialData: T[] = []) {
255 super();
256 this._data = new BehaviorSubject<T[]>(initialData);
257 this._updateChangeSubscription();
258 }
259
260 /**
261 * Subscribe to changes that should trigger an update to the table's rendered rows. When the

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected