You need to sign in to do that
Don't have an account?

Using the svg and use html tags in Lightning?
Hi,
I'm using svg and use tags in a lightning component. I get the error:
For the code:
What am I doing wrong here?
Thanks!
I'm using svg and use tags in a lightning component. I get the error:
Failed to save undefined: No COMPONENT named markup://use found
For the code:
<svg aria-hidden="true" class="icon icon--large icon-standard-user"> <use xlink:href="assets/icons/standard-sprite/svg/symbols.svg#user" /> </svg>
What am I doing wrong here?
Thanks!
Ex:
Also, most probably lightning doesn't support <use/> tag. You would workaround this.
but it didn't change anything. Any thoughts on what else I should try?
https://developer.salesforce.com/trailhead/project/slds-lightning-components-workshop/slds-lc-4
See this page on the Lightning Design System site: https://www.lightningdesignsystem.com/resources/lightning-svg-icon-component-helper/
It does not work! deep inside javascript, it throws 404 !! what is exact URL i have to use??
To following code:
OR to following
Hope this help!
Anyway I'm pretty sure there would be another way to reference the icons without uploading them, since you are Woking in Salesforce with Lightning components
David
--Santosh