@munsterlander the problem is that so many items are being attached to the DOM.
H
Save
Saving
Husnain Tahir
@Husnain Tahir
0
Reputation
3
Posts
1064
Profile views
0
Followers
0
Following
Posts made by Husnain Tahir
-
RE: Walktrough
-
RE: Walktrough
@munsterlander oh sorry i forgot to mention ons.ready();, yeah that code will definitely execute, but thing is that i we have more than 1500 lines of code in a single file, it will take a while for ons.ready() to fire, and when it fires it will show the walkthrough may be even for a moment, but it will definitely show it.
-
RE: Walktrough
@munsterlander the sample code you provided will throw an error because
if (localStorage.getItem(“walkThroughPage”) === null) {
localStorage.setItem(“walkThroughPage”,“pg1”);
** myNav.**pushPage(‘pg1’, {animation : ‘slide’});
}
myNav will be undefined, which you basically defined later in the code i-e
<ons-navigator id=“myNav”>
So how can somebody use a variable when it is not even defined?