Skip to content

Assets in templates like (svg stack) #6386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tamascsaba opened this issue May 19, 2017 · 2 comments
Closed

Assets in templates like (svg stack) #6386

tamascsaba opened this issue May 19, 2017 · 2 comments
Labels
P5 The team acknowledges the request but does not plan to address it, it remains open for discussion severity3: broken

Comments

@tamascsaba
Copy link

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Repro steps.

Use icon stack in angular template like:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" [ngClass]="{'use-current-color ': useCurrentColor}">
  <use attr.xlink:href="assets/images/stack.svg#{{name}}"></use>
</svg>

Generated output will be the same.

Desired functionality.

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" [ngClass]="{'use-current-color ': useCurrentColor}">
  <use attr.xlink:href="stack.509859ebb28ab1f45c2e.svg#{{name}}"></use>
</svg>

Webpack parse the template generate a same hashed file, which i use in styles too.

@Brocco Brocco added P5 The team acknowledges the request but does not plan to address it, it remains open for discussion severity3: broken labels May 19, 2017
@clydin
Copy link
Member

clydin commented Jan 5, 2018

This appears to be a duplicate of #3415. Please follow that issue for any updates.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P5 The team acknowledges the request but does not plan to address it, it remains open for discussion severity3: broken
Projects
None yet
Development

No branches or pull requests

4 participants