import { Component } from '@angular/core';import { NavController , LoadingController } from 'ionic-angular';@Component({ selector: 'page-contact', templateUrl: 'contact.html'})export class ContactPage { constructor(public NavCtrl:NavController,public LoadCtrl:LoadingController) { this.user = {}; this.user.username = ""; this.user.password = ""; this.NavCtrl = NavCtrl; } showFill(){ let loading = this.LoadCtrl.create({ content:"...", duration:3000 }); loading.present(); setTimeout(()=>{ loading.dismiss(); },3000); }}这样写有什么错误吗?
3 回答
1160124424
TA贡献1条经验 获得超1个赞
export class ContactPage {
user:any;
constructor(public NavCtrl:NavController,public LoadCtrl:LoadingController) {
this.user = {};
this.user.username = "";
this.user.password = "";
}
}
sdwsq
TA贡献19条经验 获得超3个赞
@Component({
selector: 'page-contact',
templateUrl: 'contact.html'
})
@应该是没有这个吧?
- 3 回答
- 0 关注
- 1911 浏览
添加回答
举报
0/150
提交
取消