2017-10-12 15 views

答えて

1

Template-driven forms are asynchronous。またform.value.saveas値が初めてでundefinedであることを意味する

They delegate creation of their form controls to directives. To avoid "changed after checked" errors, these directives take more than one cycle to build the entire control tree. That means you must wait a tick before manipulating any of the controls

。このエラーを取り除くには、安全なナビゲーション演算子を使用してください:

*ngIf="form.value.saveas?.length > 0" 
関連する問題