如何在IONIC 3中返回root应用程序。
main.js:1436 ERROR错误:未捕获(在承诺中):无效链接: TabsPage(...)
import { Component, ViewChild, ElementRef } from '@angular/core';
import { NavController } from 'ionic-angular';
import { Geolocation } from '@ionic-native/geolocation'
@Component({ selector: 'page-registrar',
templateUrl: 'registrar.html'
})
export class RegistrarPage {
constructor(public navCtrl: NavController) {}
ionViewDidLoad(){}
openHomePage(){
this.navCtrl.setRoot('TabsPage');
}
}