项目中把controller、service抽取出来

一步一步没有报错

index那里加 <script src="js/controllers/XXController.js"></script>就报错了

【AngularJs】---"Error: [ng:areq] Argument 'fn' is not a function, got undefined"

【原因】

我抽取出来的controller头部也这样写了

angular.module('gflt.controllers', [])

正确写法

angular.module('gflt.controllers')

相关文章:

  • 2022-01-15
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-08
  • 2021-09-20
  • 2021-07-05
  • 2021-05-02
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
相关资源
相似解决方案