how to use a local image as a Qicon

329 Views Asked by At

I want to use githubLogo.svg as a Qicon so I did this:enter image description here But it's not working. enter image description here

I don't understand why is not working, I used the quasar doc (https://quasar.dev/vue-components/icon#introduction) and I don't what I did wrong.

1

There are 1 best solutions below

0
khshyr On

In quasar, for some reason(which i don't know) in order to bind assets dynamically to quasar components, you have to keep your images inside of "/public" directory.

Create a new folder called "images" in your project's "/public" and it should work just fine.

best of luck to you.