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

Method constructor

src/cdk/collections/array-data-source.ts:14–16  ·  view source on GitHub ↗
(private _data: readonly T[] | Observable<readonly T[]>)

Source from the content-addressed store, hash-verified

12/** DataSource wrapper for a native array. */
13export class ArrayDataSource<T> extends DataSource<T> {
14 constructor(private _data: readonly T[] | Observable<readonly T[]>) {
15 super();
16 }
17
18 connect(): Observable<readonly T[]> {
19 return isObservable(this._data) ? this._data : observableOf(this._data);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected