I have a pop up tutorial (basically slider) that will show upon first launch in the app. This is what I wrote in the controller.js
//show first time tutorial
if(localStorage.getItem("second") != "true")
{
$ionicPopup.show({
template: '<ion-slide-box class="first_tutorial">\
<ion-slide>\
<img class="img1" />\
</ion-slide>\
<ion-slide>\
<img class="img2" />\
</ion-slide>\
<ion-slide>\
<img class="img3" />\
</ion-slide>\
<ion-slide>\
<img class="img4" />\
</ion-slide>\
</ion-slide-box>',
scope: $scope,
cssClass: 'tutorial_popup_dlg',
buttons: [
{ text: 'Got It' }
]
});
localStorage.setItem("second", "true");
}
//--show first time tutorial
But it is not working...any suggestions ?