Hello, I am currently working on vue.js 2 and I have come across a problem with the JavaScript part. I would like to include the general.js file in my posts.vue file. Can anyone provide assistance with this? Your help would be greatly appreciated :)
Below is the code snippet:
<template>
<div>
<p> {{message}} </p>
</div>
</template>
<script>
import axios from 'axios';
import _ from 'lodash';
export default {
data() {
return {
message : 'Here is my HTML'
}
}
}
</script>