[Vuejs]-Inporting arbitrary Javascript functions into a Vue.js component

3👍

You can keep working with several files and then just to the following.

import AlgebraicFunctions from 'algebraic-file';
import GeometricFunctions from 'geometric-file';

Using the spread operator:

methods: { 
 ...AlgebraicFunctions,
 ...GeometricFunctions
}

Leave a comment