Yes, I have cloned the project with updated code from github.com/aaronksaunders/ionic-vu....
I have changed data: { name: "Why Data" } into data: { title: "Why Data" } but both do not show "Why Data" in the title of the modal, but "Super Modal" instead.
I run Ionic Framework : @ionic/vue 5.5.2 with vue@3.0.4
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
I think you mean: props: { title: { type: String, default: "Super Modal" } }, But how do I change this using parameters from detail.vue?
<simple-modal :title="data" @modalSave="handleSave" @modalCancel="handleCancel"> </simple-modal>
Thank you, it's working now.
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
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yes, I have cloned the project with updated code from github.com/aaronksaunders/ionic-vu....
I have changed
data: {
name: "Why Data"
}
into
data: {
title: "Why Data"
}
but both do not show "Why Data" in the title of the modal, but "Super Modal" instead.
I run Ionic Framework : @ionic/vue 5.5.2 with vue@3.0.4
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
I think you mean:
props: {
title: { type: String, default: "Super Modal" }
},
But how do I change this using parameters from detail.vue?
Thank you, it's working now.
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