I have an app that will have a view with pages that should only be displayed if the user has not loaded the app before. A boolean will be held in localstorage to determine whether or not the initial view should be shown or not and it will be checked in the deviceready function.
//on home page (or page that is initiated first)
onPageInit(event, page){
//let's assume that your first run view in popup (can be what ever you want)
var firstRunPopup = app.popup.get('.firstRunPopup');
if (localStorage.getItem("firstRun") === null) {
firstRunPopup.open();
localStorage.setItem('firstRun', true);
}
}
Ok, so if I create the views dynamically, setting .view-main to a URL whats in the index.html for views? Are they the view names without the class view-main? And they are loaded via routes?