我是Ionic 2的新手,需要使用Loading ionic2组件 但是当我将它添加到userPage构造函数时,我收到此错误无加载提供程序
import { NavController, Loading } from 'ionic-angular';
export class UsersPage {
constructor(public navCtrl: NavController, private loading: Loading) {}
}
答案 0 :(得分:3)
应该是LoadingController
而不是Loading
:
import { NavController, LoadingController } from 'ionic-angular';
export class UsersPage {
constructor(public navCtrl: NavController, private loading: LoadingController) {}
}