プログラミング初心者でAngularJSに挑戦している者です。
$templateを使おうと思い、モジュールに$templateCacheをDIしたのですがエラーが出てしまい原因が分からない状況です。以下がエラーコードになります。
Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:
Error: [$injector:modulerr] Failed to instantiate module MyMemoApp due to:
Error: [$injector:modulerr] Failed to instantiate module $templateCache due to:
Error: [$injector:nomod] Module '$templateCache' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
他のものはDIできている状態です。何度もスペルなどは確認し、初歩的なミスではないと思うのですが未だ解決できていません。このような現象を見たことある方がいましたら、お手数ですがお返事ください。お願いいたします。
エラーコード内にあったリファレンスページも確認しましたが、自分では理解できませんでした。
http://errors.angularjs.org/1.4.6/$injector/modulerr?p0=%24templateCache&p1…2F%2Flocalhost%3A9000%2Fbower_components%2Fangular%2Fangular.js%3A4372%3A5
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。