2016-04-05 10 views
3

srcリンクの角度のscrコードファイルを1.2.2から1.5.0に変更すると、エラーが発生し続けます。つまり、コードは1.2.2で正常に動作しますが、1.5に変更するとこのエラーが発生します。 .0。私は、コードに更新何私が何を意味することができます1.5.0にアップデートしたいのは、角度1.5.0エラーがあなたにController_indexを登録していない意味角度の悪い増補エラー

 Error: ng:areq 
     Bad Argument 
     Argument 'Controller_index' is not a function, got undefined 
     Description 
     AngularJS often asserts that certain values will be present and truthy using a helper function. If the assertion fails, this error is thrown. To fix this problem, make sure that the value the assertion expects is defined and truthy. I know 1.2.2 is outdated but I am using the same thing and I don't know whats new in 1.5.0 and how to change it.As per my knowledge it looks fine to me. 

答えて

1

と互換性を持たせるために行われる必要がありますコントローラ。次を追加してください:

module.controller('Controller_index', Controller_index); 

これはbreaking change between 1.2 and 1.3でした。

+0

高齢者は、追いつく角度から多くの時間がかかりました – Pritbh

関連する問題