ionic-vue | Vuejs integration for Ionic versions | iOS library
kandi X-RAY | ionic-vue Summary
kandi X-RAY | ionic-vue Summary
Vuejs integration for Ionic versions 4 and 5
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ionic-vue
ionic-vue Key Features
ionic-vue Examples and Code Snippets
Community Discussions
Trending Discussions on ionic-vue
QUESTION
I want to build a todo app with ionic-vue. It currently uses vue 3. I have this overview (called Lists.vue) where it is possible to click on multiple lists (where tasks should be loaded per list). However, everytime when I click on a list, the same data appears! It is as if the component is being reused but not re rendered/ updated.
I have tried all kinds of solutions. One of them was to apply a watch on the ref that is being changed, however, it does not matter, the end result stays the same. Also tried to give :key to router-link, still does not work.
My Lists.vue
...ANSWER
Answered 2021-Jun-04 at 04:54Found the answer to my problem! I had to use watchEffect on the loadValue method in order to recall the data from the database. It would seem that Vue (after some research on the internet) wants to reuse components instead of rerendering them, which is more efficient.
The route params were being updated but the key of the component was not, however.
The setup function on Index.vue (the list of tasks)
QUESTION
I'm looking for a way to create nested lists with draggable elements in VueJs3 & Ionic
This is the result I'd like to have: https://ej2.syncfusion.com/vue/documentation/treeview/drag-and-drop/
Moreover, I'd like each item of the list to be part of "ion-sliding" tag for them to have some options when they're sliding like this: https://ionicframework.com/docs/v3/api/components/item/ItemSliding/
I tried to use "ion-reorder-group" but it doesn't allow me to create nested lists like I would like to. I also tried a bunch of librairies but I'm not able to make any of them work with my Ionic-Vue3 project.
I'm stuck on this issue and I would be very glad to have any recommendations or help !
Thank you very much
...ANSWER
Answered 2021-Mar-03 at 11:30I resolved the question, I'm posting the solution I used in case it could be useful for someone.
I used this library: https://github.com/SortableJS/vue.draggable.next that supports Vuejs 3.0
There's a very useful link to look at live demos and each of them has the code attached to it available. I combined some of them and added my "ion-sliding" tags to obtain the result expected.
It works perfectly !
QUESTION
I'm trying to access the closeSlidingItems method of the IonList component so that the sliding item is closed automatically once I click on a button which appears from behind after sliding this item to the right.
I tried to do it by putting a reference to IonList, then accessing it from the callback method for the click event on this button. However, I get an error:
Cannot read property 'closeSlidingItems' of undefined
This is the code in the root component:
...ANSWER
Answered 2020-Dec-18 at 08:34Same for ion-item-sliding
close
method. See below simplified example. It looks like the component methods are not visible when you try to get the component instance using Vue3. Ref returns a Proxy object in that case.
https://codesandbox.io/s/ionic-vue-refs-2-forked-zx3lg?file=/src/App.vue
QUESTION
I am trying to create ionic vue snippets. So far it seems to only work when added on the top level and not working when added inside a template
or div
tag. How can I insert snippets inside these tags?
Snippet
...ANSWER
Answered 2020-Dec-15 at 08:04Set the snippet scope to html,vue-html
:
QUESTION
I'm an experienced front-end developer but I'm very new to Ionic so please forgive me for asking a silly question.
I'm using Ionic-Vue to create a mobile app.
I started with the tabs default template. I can switch between tabs without any problem: each tab has an associated route and component and the right component is shown instantly when i switch tab.
Now to the problem.
I'm trying to add a new route/component for the Login screen. I want the login screen to be outside of the tab system so I put it as a top-level route "/login" with its associated component. I added a new button on the first tab in order to login, this is the code.
...ANSWER
Answered 2020-Dec-03 at 18:28You should use a router-link
to direct the router:
QUESTION
ANSWER
Answered 2020-Sep-21 at 15:54Problem was a missing .eslintrc.js
file. I created with this config
QUESTION
Hello i'm converting somme of my web code to an ionic-vue app and i wanted to know if we can catch a this.$emit from my modal using the ionic modal controller insted of classic vuecomponent.
basically i want to translate
...ANSWER
Answered 2019-Aug-16 at 19:30ParentComponent.vue
QUESTION
I am trying to create an ionic-vue app following this post but I get Cannot convert undefined or null to object
error, when I register @ionic/vue
plugin in main.js.
ANSWER
Answered 2019-Jul-16 at 13:49It seems to be a problem with ionicons
. According to this thread adding ionicons@4.5.9-1
fixes the issue.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ionic-vue
vue
vue-template-compiler
vue-router
@ionic/core
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page