This is a sample of my JSON data. I am looking to showcase the content of the clicked element in a modal window.
[{
"id": 1,
"companyName": "test",
"image": "https://mmelektronik.com.pl/wp-content/uploads/2017/10/Insert-logo.jpg.png",
"location": "Warsaw",
"salary": "10000",
"skill": "Junior",
"tags": "test",
"jobDescription": "test",
"title": "UI Designer"
}
]
Now, I need to extract only the jobDescription and present it in the modal.
b-modal(hide-footer="", :id="id")
template(#modal-title="")
| Information
.d-block.text-center
p {{ want the jobDescription here }}
b-button(variant="primary") Apply
This section demonstrates how I trigger the modal opening.
openModal(item) {
this.offer = item;
this.$bvModal.show(this.id);
}