injector already created. can not register a module

前端 未结 3 2022
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-15 15:11

I am a new bee to Angular JS and was trying to make something out of it in a proper TDD way, but while testing i am getting this error:

Injector alrea

3条回答
  •  一个人的身影
    2020-12-15 15:43

    If you are mixing calls to module('someApp') and inject($someDependency) you will get this error.

    All your calls to module('someApp') must occur before your calls to inject($someDependency).

提交回复
热议问题