2👍
You could add it to your component:
import { addZeroes } from "../../../js/helpers";
export default {
data() {
return {
// populated via AJAX
restaurants: [
{
categories: []
}
],
}
},
methods: {
addZeroes // shorthand for addZeroes: addZeroes
}
}
👤Nora
- [Vuejs]-How to import a script into .vue file?
- [Vuejs]-How to make my VueCLI webpack-simple accessible in LAN (192.168.1.73:8080)?
Source:stackexchange.com