2
基本上我已经探索过我们如何使用离子2在api中使用get和post。如何在离子2中重定向
但我一直认真思考如何去认证后欢迎屏幕。
这是我的html:
<ion-content>
<ion-list>
<ion-label>Username</ion-label>
<input type="text" name="username" [(ngModel)]="model.username">
<ion-label>Password</ion-label>
<input type="password" name="password" [(ngModel)]="model.password"><br><br><br>
<button round block (click)="submit()">Submit</button>
</ion-list>
</ion-content>
嗨Mohan:在使用它时会给出错误:error_handler.js:50原始异常:没有NavController的提供者! 。在控制台 –
ofcourse你必须导入你的欢迎页面和登录页面在'app.module.ts'文件中,并将它添加到你的'entryCompopnent'和'声明' –
基本上我有一个新的离子2包括菜单:在我包括从'ionic-angular'导入{NavController};和时间,我将它作为构造函数(公共平台:平台,公共navCtrl:NavController)传递给构造函数它给我错误NavController没有提供者! –