DEV Community

loading...

Discussion on: Ionic Modal In Vue JS, Managing Events

aaronksaunders profile image
Aaron K Saunders Author

to change the title of the modal, you need to set the modals title property, you are changing the data property which has no impact on the modal

Thread Thread
suzannevangelder profile image
Suzanne-van-Gelder

I think you mean:
props: {
title: { type: String, default: "Super Modal" }
},
But how do I change this using parameters from detail.vue?

Thread Thread
aaronksaunders profile image
Aaron K Saunders Author
    <simple-modal
      :title="data"
      @modalSave="handleSave"
      @modalCancel="handleCancel">
    </simple-modal>
Enter fullscreen mode Exit fullscreen mode
Thread Thread
suzannevangelder profile image
Suzanne-van-Gelder

Thank you, it's working now.

Thread Thread
aaronksaunders profile image
Aaron K Saunders Author

Thanks, please like and subscribe to my YouTube channel, trying to get my subscribers over 2000!! And you will get updated when I push new content