Another newbie question!
I am using App Designer, Ionic/Angular, with a controller in app.js.
My home page is a form where filter values can be entered by a user, and I save the entered ng-model values into indexedDB, and these filters are used for a REST request on a listings page.
Everything is working except...
When the app starts I get the filter values from the indexedDB and assign these values to my ng-model fields. If I log these values to console I can see that everything has worked, but the page fields don't get updated - UNTIL I click on fields on the page, or go to the listing page and back again. IOW some event is needed to update the display of the values in my filter fields.
Is this some sort of timing issue? Is the page loading before/after I have the values from the DB? What can I do to resolve this? I notice that the latest release of IntelXDK has a function that allows me to easily check for document ready, can I use that to resolve this problem?
I resolved my problem by calling the timeout function, which refreshed the model variables on the screen...
Is this a reasonable way to refresh the screen?