2016-07-07 7 views
2

Angular2-RC4に見る子供を経由して輸入のコンポーネントにアクセスすることはできませんは、しかし、私は<code>undefined</code>エラーを取得しています、これは私のコードである

EXCEPTION: Error: Uncaught (in promise): EXCEPTION: Error in ./TransactionPage class TransactionPage_Host - inline template:0:0 ORIGINAL EXCEPTION: TypeError: Cannot read property 'infoForm' of undefined

任意のアイデア何I行方不明ですか?

答えて

3

あなたは型を使用するタイプのクエリを実行した場合'

@ViewChild(PersonalInfoPage) 

を削除します。テンプレート変数をクエリすると、文字列を使用します。

@ViewChild(PersonalInfoPage)  personalInfo: PersonalInfoPage 
@ViewChild(PaymentDetailsPage) paymentDetails: PaymentDetailsPage 
@ViewChild(AddressPage)   address:  AddressPage 
@ViewChild(IdentityPage)   identityPage: IdentityPage 
+2

答えの2分前に見つかった。 30分のデバッグ。ああ喜び... – nottinhill

+3

微妙な違いが... –

関連する問題