Angular js没有响应 - 需要帮助

时间:2017-02-07 12:53:37

标签: angularjs

This is my cshtml

当我在本地主机上运行代码时,表格会闪烁并消失,并且无法绑定任何数据。 我正在使用visual studio 2015社区并在.NetCOre 1.0上运行 我正在使用Angular 1.5.7 我将不胜感激任何帮助。

apptrips.js中的角度模块声明:

(function () {
  // Creating the Module
  angular.module("apptrips", []);
})();

This is where the module is defined and a tripsController function is defined

下面我在浏览器中出现以下控制台错误

O Uncaught Error: [Sinjector:nomod] http://errors.angul angular.is:2075 aris .org/1.5.7/Siniector/nomod?p0=app-trips at angular.is:38 at angular.~is:2075 at b (angular.is:1999) at Object.module (angular.is:2073) at tripsController.is:5 at tripsController.is: 14

© ► Error: [ng:areq] http://errors.angularis.org/1.5. angular.is:13708 7/ng/area?p0=tripsController&pl=not%20a%20function%2C%20got%20undefine d
at angular.is:38 at sb 
(angular.is:1885) at Qa 
(angular.is:1895) at 
angular.is:10210 at ag 
(angular.is:9331) at m 
(angular.is:9116) at g
 (angular.is:8510) at g 
(angular.is:8513) at 
angular.is:8390 at angular.is:1756

1 个答案:

答案 0 :(得分:0)

Error: [ng:areq] http://errors.angularis.org/1.5. angular.is:13708 7/ng/area?p0=tripsController&pl=not%20a%20function%2C%20got%20undefine d

错误表示未找到/加载tripsController

您是否将包含控制器的js文件包含在主索引文件中?