Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

When used in *ngFor, first item in list will be used for every instance #100

Closed
rinkstiekema opened this issue Jan 17, 2019 · 4 comments
Closed
Labels

Comments

@rinkstiekema
Copy link

When used in this format:

<li *ngFor="let item of items">
    <div [inlineSVG]="item.src"></div>
</li>

With items being the following array:

[
      {name: "google", img: 'assets/icons/google_icon.svg'},
      {name: "yahoo",  img: 'assets/icons/yahoo_icon.svg'},
      {name: "microsoft", img: 'assets/icons/outlook_blue.svg'}
]

For every item, the first svg in the array will be used for every item. Using the same *ngFor, but instead using an <img> tag works correctly.

@arkon arkon added the bug label Mar 5, 2019
@r0manchak
Copy link

Having the same issue across the whole page.

Every icon is replaced with the first one.

@arkon
Copy link
Owner

arkon commented Apr 7, 2019

I can't actually seem to reproduce this. Can anyone make a minimal reproduction of it in StackBlitz or something?

@rinkstiekema
Copy link
Author

@arkon
Copy link
Owner

arkon commented Jun 20, 2019

Ah, seems to be the same issue as #99.

@arkon arkon closed this as completed Jun 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants