Answer the question
In order to leave comments, you need to log in
Create a new Vue object from a component?
Hello. The task is this: there is an application, you need to export to an image with the ability to specify settings (scale).
The logic is this:
All elements are in the component. We take create a new instance (so that the main application does not change in any way) vue change the scale, take html through newVue.$el and make an image with the domtoimage library or through canvas.
Here's a demo, it's not very clear how to make a new vue instance and apply settings to it?
https://codesandbox.io/embed/falling-river-dkmvl?f...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question