• im using *ngFor, it does the difference – hafizi hamid Aug 19 '19 at 13:24
  • 1 Answers1

    0

    As mentioned in the comment below by @hazifi. The option tag only supports text - Link here. You could use a background-image but it would limit you in the positioning of other elements.

    How to add images in select list?

    Probably the best solution also mentioned in the comments is using angular material:

    How to implement angular 7 drop-down with images?

    Nephi
    • 103
    • 6
    • What do you have in your angular.json defined as assets? `"assets": [?]` – Nephi Aug 19 '19 at 13:47
    • "assets": [ "src/favicon.ico", "src/assets" ] @nephi – hafizi hamid Aug 19 '19 at 15:41
    • @hafizi I think your svg is files might miss some info. I have tried in a sample project and had the same issue. Can you share the content of one of your svg's? – Nephi Aug 20 '19 at 05:51
    • 1
      I dont think it svg.. it is because – hafizi hamid Aug 20 '19 at 06:02
    • @hazifi I have updated my answer to reflect your findings. – Nephi Aug 20 '19 at 06:18
    • Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/198160/discussion-between-nephi-and-hafizi). – Nephi Aug 20 '19 at 06:19
    • background-image is deprecated by firefox..and also I dont want to use angular material, – hafizi hamid Aug 20 '19 at 06:20