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

Method _addSvgIconSetConfig

src/material/icon/icon-registry.ts:690–700  ·  view source on GitHub ↗

* Registers an icon set config in the specified namespace. * @param namespace Namespace in which to register the icon config. * @param config Config to be registered.

(namespace: string, config: SvgIconConfig)

Source from the content-addressed store, hash-verified

688 * @param config Config to be registered.
689 */
690 private _addSvgIconSetConfig(namespace: string, config: SvgIconConfig): this {
691 const configNamespace = this._iconSetConfigs.get(namespace);
692
693 if (configNamespace) {
694 configNamespace.push(config);
695 } else {
696 this._iconSetConfigs.set(namespace, [config]);
697 }
698
699 return this;
700 }
701
702 /** Parses a config's text into an SVG element. */
703 private _svgElementFromConfig(config: LoadedSvgIconConfig): SVGElement {

Callers 2

Calls 3

setMethod · 0.80
getMethod · 0.65
pushMethod · 0.65

Tested by

no test coverage detected