-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fixhelp wantedThe team would appreciate a PR from the community to address this issueThe team would appreciate a PR from the community to address this issueneeds: discussionFurther discussion with the team is needed before proceedingFurther discussion with the team is needed before proceeding
Description
Bug, feature request, or proposal:
Extending of mdIcon source definition (for inlined svg strings)
What is the expected behavior?
const iconAsSvg: string = '<svg>...</svg>'
mdIconRegistry.addSvgIcon('myicon', iconAsSvg);
or reference the svg string directly in md-icon:
<md-icon [svgIconSrc]="iconAsSvg"></md-icon>
What is the current behavior?
Registering for svg's works only with an url:
mdIconRegistry.addSvgIcon(iconName: string, url: SafeResourceUrl): this
So you would be more flexible to provide svg resources (e.g. for libs etc.)
albv, lyschoening and james-schwartzkopf
Metadata
Metadata
Assignees
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fixhelp wantedThe team would appreciate a PR from the community to address this issueThe team would appreciate a PR from the community to address this issueneeds: discussionFurther discussion with the team is needed before proceedingFurther discussion with the team is needed before proceeding