Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Modal Props data is not passing

$
0
0

I have followed this docs https://ionicframework.com/docs/api/modal

Modal is opening but not data is being passed.

this is my Modal Component

import { IonContent, IonHeader, IonTitle, IonToolbar, modalController, IonButton, IonButtons } from ‘@ionic/vue’;

import { defineComponent } from ‘vue’;

export default defineComponent({

name: ‘ProductDetailsModal’,

props: [‘title’],

data() {

return { 

    content:'assda',

}

},

components: { IonContent, IonHeader, IonTitle, IonToolbar, IonButton, IonButtons },

methods: {

  dismissModal(){

    modalController.dismiss();

  }

}

});

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>