V
V
Valery V.2019-02-19 17:14:09
Vue.js
Valery V., 2019-02-19 17:14:09

How to pass Vue context to included js file?

Good afternoon!
Including a file in a vue component How can I pass the Vue instance context to this file? Within a given file, various methods can be called using the this of the Vue instance.
import {FileName} from './Path/to/file/index.js';

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question