-
Notifications
You must be signed in to change notification settings - Fork 90
Support being provided with a SVG as a string #76
base: master
Are you sure you want to change the base?
Conversation
src/inline-svg.directive.ts
Outdated
// Check if a URL was actually passed into the directive | ||
if (!this.inlineSVG) { | ||
// Check if a URL/string was actually passed into the directive | ||
if (!this.inlineSVG && !this.isSVGString) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just leave it as a single check and reword the failure message.
src/inline-svg.directive.ts
Outdated
} | ||
|
||
if (this.isSVGString) { | ||
this.insertSvgElement(this._svgElementFromString(this.inlineSVG)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you refactor it so we get the SVG here, and then call insertSvgElement
with it?
Hi, can this be merged? Any changes required? |
Master has changed since this PR was posted, and this PR can't be merged without adaptions. The reason it wasn't merged, is that the repo creator redecided on the approach to solving my initial problem. I still think the implementation this PR provides is the simplest and most versatile solution, as I believe the responses in the corresponding issue has proven to confirm: ://github.com//issues/75 What do you think @arkon ? |
Closes #75