I have a Vue application set up in the following manner:
import { createApp } from 'vue';
import RecommendedJobsWidget from './RecommendedJobsWidget.vue'
createApp(RecommendedJobsWidget).mount("#recommendedJobsWidgetInstance");
Here is how my HTML looks:
<body>
<div id="recommendedJobsWidgetInstance">
<recommended-jobs-widget :message="'messagehere'"></recommended-jobs-widget>
</div>
<script src="/ui/migrate/dist/recommended_jobs_widget.js"></script>
</body>
Even though my app is loading correctly, I am experiencing issues with passing a prop named message
to the <recommended-jobs-widget>
component. I have defined the prop in my component like this:
props: ['message']
However, when I try to access the prop within my component, it seems to be unavailable. I have tried different solutions with no success in getting my data passed as a prop.
If anyone could offer any assistance, it would be greatly appreciated.