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

Method connect

src/universal-app/kitchen-sink/kitchen-sink.ts:72–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71export class TableDataSource extends DataSource<ElementItem> {
72 connect(): Observable<ElementItem[]> {
73 return observableOf([
74 {position: 1, name: 'Hydrogen', weight: 1.0079, symbol: 'H'},
75 {position: 2, name: 'Helium', weight: 4.0026, symbol: 'He'},
76 {position: 3, name: 'Lithium', weight: 6.941, symbol: 'Li'},
77 {position: 4, name: 'Beryllium', weight: 9.0122, symbol: 'Be'},
78 {position: 5, name: 'Boron', weight: 10.811, symbol: 'B'},
79 {position: 6, name: 'Carbon', weight: 12.0107, symbol: 'C'},
80 {position: 7, name: 'Nitrogen', weight: 14.0067, symbol: 'N'},
81 {position: 8, name: 'Oxygen', weight: 15.9994, symbol: 'O'},
82 {position: 9, name: 'Fluorine', weight: 18.9984, symbol: 'F'},
83 {position: 10, name: 'Neon', weight: 20.1797, symbol: 'Ne'},
84 ]);
85 }
86
87 disconnect() {}
88}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected