You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to call component methods (Ionic 4 + Vue.js 2) #827
For example, if I use the ion-tabs and want to change the current tab manually, there is a select method provided for this component which returns a promise. But I don't understand how to use given methods of components (in Vue.js).
I don't understand how to use the given methods of components at all. There are several examples, mostly for Angular, which are outdated. I seek a solution for Vue.js only.
I do not have an answer to this, but am also seeking an answer to this relatively simple question. If anyone find an answer, please post here. I'll do the same.
Hi everyone, Vue support is currently in beta. Hence why our docs/guides aren't as robust as React or Angular. We've got a Vue channel in our Ionic Community Slack that might provide more immediate assistance.
Hi, I still did not found any solution for this feature, neither for Vue nor React, Angular, VanillaJS. A better framework for developing an overall app for the web and mobile is quasar. The doc is awesome, just try it, you will be happy with it.
Hi, I found several solutions for ng, the problem is with IonicVue that's in beta. @dotNetkow your link for Ionic Community Slack's not working at the time I'm writing :(
@cabassi the ionic's platform customization would be great, I currently work with the Capacitor plugins and if something is not working / available I use Cordova plugins.
How to you handle / listen to events on the component?
Activity
renqianwen commentedon Nov 14, 2019
I also want to know how...
kevinXmichael commentedon Nov 14, 2019
EllieSadler commentedon Jan 13, 2020
I do not have an answer to this, but am also seeking an answer to this relatively simple question. If anyone find an answer, please post here. I'll do the same.
dotNetkow commentedon Feb 13, 2020
Hi everyone, Vue support is currently in beta. Hence why our docs/guides aren't as robust as React or Angular. We've got a Vue channel in our Ionic Community Slack that might provide more immediate assistance.
cabassi commentedon Mar 11, 2020
Has someone found a solution for this?
kevinXmichael commentedon Mar 11, 2020
Hi, I still did not found any solution for this feature, neither for Vue nor React, Angular, VanillaJS. A better framework for developing an overall app for the web and mobile is quasar. The doc is awesome, just try it, you will be happy with it.
cabassi commentedon Mar 11, 2020
Hi, I found several solutions for ng, the problem is with IonicVue that's in beta.
@dotNetkow your link for Ionic Community Slack's not working at the time I'm writing :(
kevinXmichael commentedon Mar 11, 2020
The slack "support" is generally not really caring. In "beta"... like a year or so.
cabassi commentedon Mar 11, 2020
Btw the workaround I'm using is Vue.$refs
e.g. If you want to call the close() method on
in the template
<ion-item-sliding ref="slidingItem">And when I want to call something on the ion-item-sliding element I do
this.$refs.slidingItem.close();kevinXmichael commentedon Mar 11, 2020
Yes this works but I wonder why calling the other functions which return a Promise does not work?
nesthor12 commentedon Apr 2, 2020
any luck with this issue?
kevinXmichael commentedon Apr 3, 2020
Nope
nesthor12 commentedon Apr 3, 2020
kevinXmichael commentedon Apr 3, 2020
nesthor12 commentedon Apr 7, 2020
kevinXmichael commentedon Apr 7, 2020
cabassi commentedon Apr 7, 2020
kevinXmichael commentedon Apr 7, 2020
@cabassi the ionic's platform customization would be great, I currently work with the Capacitor plugins and if something is not working / available I use Cordova plugins.
How to you handle / listen to events on the component?
mrpbaum commentedon Feb 9, 2022
I'm not using any framework. How do I get a reference to a component to call its methods?
brandyscarney commentedon Nov 18, 2025
Thanks for the issue! This was resolved by #4281 and is live at Tabs: Programmatically Selecting Tabs.