[Vuejs]-How to pass a dynamic variable to a 'component' and then display it – VueJS

0👍

I assume that currentModalPdfLink is your pdf-link?
The name of the prop that you are passing is src so you need to refer to it in your component with the same name:

Vue.component('modal', {
    template: '#modal-template-pdf',
    props: ['src']
});
👤Bene

Leave a comment