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

Function method

src/material/tabs/ink-bar.ts:198–201  ·  view source on GitHub ↗
(element: HTMLElement)

Source from the content-addressed store, hash-verified

196 providedIn: 'root',
197 factory: () => {
198 const method = (element: HTMLElement) => ({
199 left: element ? (element.offsetLeft || 0) + 'px' : '0',
200 width: element ? (element.offsetWidth || 0) + 'px' : '0',
201 });
202
203 return method;
204 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected