MCPcopy Index your code
hub / github.com/angular/components / register

Method register

src/material/sort/sort.ts:138–150  ·  view source on GitHub ↗

* Register function to be used by the contained MatSortables. Adds the MatSortable to the * collection of MatSortables.

(sortable: MatSortable)

Source from the content-addressed store, hash-verified

136 * collection of MatSortables.
137 */
138 register(sortable: MatSortable): void {
139 if (typeof ngDevMode === 'undefined' || ngDevMode) {
140 if (!sortable.id) {
141 throw getSortHeaderMissingIdError();
142 }
143
144 if (this.sortables.has(sortable.id)) {
145 throw getSortDuplicateSortableIdError(sortable.id);
146 }
147 }
148
149 this.sortables.set(sortable.id, sortable);
150 }
151
152 /**
153 * Unregister function to be used by the contained MatSortables. Removes the MatSortable from the

Callers 6

loader-rule.jsFile · 0.45
tsLoaderRule.jsFile · 0.45
ngOnInitMethod · 0.45
onPrepareFunction · 0.45
onPrepareFunction · 0.45

Calls 3

setMethod · 0.80

Tested by

no test coverage detected