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

Scope variable undefined after second time

$
0
0

@lienem wrote:

So, I have a project where I get data from database and store it in local storage. Afterwards I use that data and autofill my form, user can edit it and update the local storage. For the first time everything works great, I can edit form and get data from view, update the local storage and so on, but if I do it again it won't work and give me and error about undefined variables. But sometimes, if I navigate between views very slowly (like a minute inbetween) I can manage to get everything right another time.
So basically, I think that the problem is some kind of delay and the variable becomes undefined. Does anyone have got similar problem and how could I work around this or just make some kind of loading action when this happens.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49185

Trending Articles



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