shrpne / vue-inline-svg

Dynamically loads an SVG source and inline <svg> element so you can manipulate the style of it
MIT License
175 stars 21 forks source link

How to install in Quasar - Need help #40

Closed pravinfullstack closed 2 years ago

pravinfullstack commented 2 years ago

Thanks for this plugin.

I am looking for a solution to install in Quasar framework, any help would be appreciated.

shrpne commented 2 years ago

Quasar is just a plugin for Vue, so vue-inline-svg should work fine alongside it. I believe the installation guide in the readme should cover it

pravinfullstack commented 2 years ago

I tried creating a boot file after installing the package. And I don't see it working. Could you please create a simple demo ?

pravinfullstack commented 2 years ago

Got it working. while I installed it globally in boot file. I was using it incorrectly in my component. I am using it now as <inline-svg :src="require('@assets/img/signin.svg')" />