第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

錯(cuò)誤:無(wú)法解析 LoginPage 的所有參數(shù):

錯(cuò)誤:無(wú)法解析 LoginPage 的所有參數(shù):

紅顏莎娜 2022-08-18 16:13:16
我面臨下一個(gè)錯(cuò)誤,無(wú)法理解如何解決它。錯(cuò)誤:無(wú)法解析 LoginPage 的所有參數(shù):([對(duì)象對(duì)象]、[對(duì)象對(duì)象]、[對(duì)象對(duì)象]、?)。我已經(jīng)檢查了這里的幾乎每個(gè)主題,并嘗試了多種方法來(lái)解決它,但仍然無(wú)法在第二天擊敗它。Login.tsimport { Component } from '@angular/core';import { IonicPage, NavController, NavParams,AlertController } from 'ionic-angular';   import { AuthProvider } from '../../providers/auth/auth';import { TabsPage } from '../tabs/tabs';/*** Generated class for the LoginPage page.** See https://ionicframework.com/docs/components/#navigation for more info on* Ionic pages and navigation.*/@IonicPage()@Component({selector: 'page-login',templateUrl: 'login.html',})export class LoginPage {email:string = '';password:string = '';errorMsg:string;constructor(public navParams: NavParams,public navCtrl: NavController,public alertCtrl: AlertControllerpublic authService: AuthProvider,) {}ionViewDidLoad() {console.log('ionViewDidLoad LoginPage');}errorFunc(message){let alert = this.alertCtrl.create({  title: 'oops!',  subTitle: message,  buttons: ['OK']});alert.present();} myLogIn(){if (this.email.trim() !==''    ) {  console.log(this.email.trim() + "   " + this.password.trim() )  if (this.password.trim()  === '') {    this.errorFunc('Please put your password')  }  else{    let credentials = {      email: this.email,        password: this.password    };     this.authService.login(credentials).then((result) => {        console.log(result);        this.navCtrl.setRoot(TabsPage);    }, (err) => {        console.log(err);        this. errorFunc('Wrong credentials ! try again')        console.log("credentials: "+JSON.stringify(credentials))    });  }  }  else{  this. errorFunc('Please put a vaild password !  for ex:(123456)')  }  }  myLogOut(){  this.authService.logout();  }  }Auth.tsimport { Injectable } from '@angular/core';import { Storage } from '@ionic/storage'; import { Http , Headers } from '@angular/http';import { TabsPage } from '../../pages/tabs/tabs';
查看完整描述

1 回答

?
拉莫斯之舞

TA貢獻(xiàn)1820條經(jīng)驗(yàn) 獲得超10個(gè)贊

你似乎有一個(gè)經(jīng)典的循環(huán)引用。您在兩個(gè)和“”中都導(dǎo)入了“TabsPage”。Auth.tsLoginPage.ts

經(jīng)典的循環(huán)引用。

嘗試從 Auth.ts 中刪除 TabsPage。通常,最好讓組件執(zhí)行非常具體的事情,以便獲得粒度代碼并避免此類循環(huán)引用問(wèn)題。


查看完整回答
反對(duì) 回復(fù) 2022-08-18
  • 1 回答
  • 0 關(guān)注
  • 138 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)