Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70857

Strange behaviour of back button in nested view

$
0
0

@ekhmoi wrote:

Video

I have a problem with nested view.
Back button overlays two parent component into each other (check the Video)

It happens when i use ngOnInit

ngOnInit() {
    this.loader.present();
    this.networkServices.loadAccounts().then(res => {

      console.log(res);
      this.handleAccounts(res);
    });
  }

here is the piece of code that i use:

@Component({
  templateUrl: 'build/pages/accounts/accounts.html'
})

export class AccountsPage {
    loader = this.loadingCtrl.create({
     content: 'Please wait...'
    });
    constructor(
        public actionSheetCtrl: ActionSheetController,
        public loadingCtrl: LoadingController,
        public networkServices: NetworkServices,
        public alertCtrl: AlertController,
        public app: App,
        public modalCtrl: ModalController,
        public navCtrl: NavController
    ) { }

    onActionSelect(account, action) {
        if (action.code !== 'More') {
            this['handleAction_' + action.code](action);
        } else {
            this.handleAction_More(account);
        }
    }
    handleAction_1002(action) {
        this.navCtrl.push(Statements, action);
    }

}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>