【问题标题】:got error for injecting my custom service in Jasmine在 Jasmine 中注入我的自定义服务时出错
【发布时间】:2016-01-19 02:06:41
【问题描述】:

我无法在 Jasmine 中注入我的自定义服务。错误是 [$injector:unpr] 未知的提供者。我已经创建了 Plunker <a href="http://plnkr.co/edit/hoOHky54TIqnjAizR986?p=preview">example </a>,点击运行,你会看到错误。

【问题讨论】:

    标签: angularjs jasmine


    【解决方案1】:

    你忘了包含

    <script src="script.js"></script>
    

    在 jasmine-test-runner.html 中。

    http://plnkr.co/edit/W19IYMR4uDFCq46j6AdR?p=preview

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-02
      • 1970-01-01
      • 2013-08-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-21
      相关资源
      最近更新 更多