import { Component } from '@angular/core' ; import { MenuController , NavController , Slides } from 'ionic-angular' ; import { Storage } from '@ionic/storage' ; import { HomePage } from '../home/home' ; @ Component ( { selector : 'page-walkthrough' , templateUrl : 'walkthrough.html' } ) export class WalkThroughPage { showSkip = true ; constructor ( public navCtrl , public menu , public storage ) { } startApp ( ) { this . navCtrl . setRoot ( HomePage ) . then ( ( ) => { this . storage . set ( 'hasSeenWalkThrough' , 'true' ) ; } ) ; } onSlideChangeStart ( slider ) { this . showSkip = ! slider . isEnd ( ) ; } ionViewDidEnter ( ) { this . menu . enable ( false ) ; } ionViewDidLeave ( ) { this . menu . enable ( true ) ; } }