@ekhmoi wrote:
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