Open
Description
I’ve been trying to incorporate dynamic svg-sprites to my project, but I’m not succeeding.
I have tried the following npm packages: vue-svg-sprite, vue-svg-directive and vue-svg, to no avail.
I believe I didn’t quite figure out the meteor-vue integration so I’m failing to add the packages properly.
I was wondering if anyone coud kindly point out to how I can go about adding svg-sprites to meteor-vue, and making it work
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
AsafAgranat commentedon Feb 22, 2017
I've created an
icon
component, which is pretty simple:To make it work, i have placed my SVG symbols in the main.html, within the body tag, like so:
But this is obviously not the way to go about it. Can someone help on how to call/ajax an external SVG file and keep it in the cache/storage?
Akryum commentedon Mar 6, 2017
Maybe we could try doing a demo project with the best practices to use SVG and integrate SVG-related vue packages into Meteor.