I am running onsenui 2.0.4 with angularjs 1. For some reason in my ios device, the model variables are not being rendered properly. They are appearing as {{model.variable}}, however when I run the app in a browser the variables appear correctly. Any ideas anyone?
Vincent Bastos
@Vincent Bastos
Posts made by Vincent Bastos
-
Angularjs bind not working
-
RE: How to reload page on switching tabs in ons-tabbar
Ok I found the code for the loadpage function in the code, but I don’t know how to write this syntax.
https://github.com/OnsenUI/OnsenUI/blob/master/core/src/onsenui.d.ts#L691
-
RE: How to reload page on switching tabs in ons-tabbar
What about something like tabbar.loadpage(’/page/url.html’, [options.keepPage = false])?
I’m just unsure about the syntax to pass the option.
( I am using Angular JS 1 )
-
RE: How to reload page on switching tabs in ons-tabbar
@munsterlander I don’t think this will work because the issue is not the variables. It’s the page that does not reload.
-
RE: How to reload page on switching tabs in ons-tabbar
@Fran-Diox I just realised that the problem is not where the logic is because my function does get called to clear the scope variable. The problem is the actual reloading of the page.
Is it a matter of destroying the page?
-
RE: How to reload page on switching tabs in ons-tabbar
That is disappointing - why the regression?
-
How to reload page on switching tabs in ons-tabbar
Hi,
We are trying to upgrade to onsenui 2 from onsenui 1.3.18 and the behaviour of ons-tab and ons-tabbar has obviously changed.
We have been relying on the fact that the pages are reloaded when a user changes from one tab to another.
I have found plenty of posts where people were asking for the opposite and it seems that this change was applied.
How can I force the page to reload and have the same behaviour as before version 2?
Just to be clear, we have scope variables in our page and we clear these when a user clicks to a new tab. Previously, when the tabs changed the values on the page changed also. Now the values do not reflect the scope variable values.
Thanks