Onsen UI Components Reference
Timeout is of course not the solution. We have mentioned it for testing purposes. The correct place to initialize a page is in its init (Onsen 2) or pageinit (Onsen 1.x) event. I think this code could be useful for you: https://github.com/frankdiox/OnsenUI-Material-Tabbar/tree/js-implementation
It’s implemented in pure JS so using jQuery should not be very different.
@operun thank you for reporting this! I’ll update Onsen UI in Monaca Cloud IDE in the next couple of days.
Thank you Fran Diox, init event - helped me.
Сorrected small example in Codepen (with init event): http://codepen.io/anon/pen/xZYGOZ
Also it works with use $templateCache
Thx! Moving to v2 when it’s released
Awesome… I am so in love with this framework…
Please try to use Onsen UI 1.3.14 and see if you can reproduce the issue.
Hi @mentizm !
You need to use the var attribute of the <ons-navigator> like this:
By doing this, it is bound as a variable and you can access it with $scope.myNavigator in AngularJS.
Here is a simple example on Codepen that illustrates this:
In the case you are using the Onsen UI 2.0 beta, you also need to include onsenui-angular.js since we’ve split the AngularJS bindings to a separate file.
Also, if you are not using AngularJS, the var attribute does not work. Instead you can just select the element and push the page:
No one has replied
Disabled Categories are greyed out