基本上,我正在尝试在加载应用程序时打印一些内容。警报工作正常但我无法在Xcode或safari开发控制台上看到控制台日志。为什么会这样?
@IonicPage()
@Component({
selector: 'page-login',
templateUrl: 'login.html',
})
export class LoginPage {
constructor(public navCtrl: NavController....){
alert("login constructer!!!"); // its working fine
console.log("CONFIGURE FROM LOGIN.TS !!"); // i can't see this in console.
}
ionViewDidLoad() {
console.log('ionViewDidLoad LoginPage'); // i can't see this one
}