Angularjs 未捕获错误:无模块:ngRoute

Angularjs 未捕获错误:无模块:ngRoute,angularjs,Angularjs,我正在使用ngRoute模块,但它显示了我的错误,所以使用该模块是否需要添加额外的文件我搜索了,但我没有找到像其他模块一样的资源,cookies我们需要单独的文件,是否也是ngRoute的?如果是,那么我在哪里可以找到 错误:- Uncaught Error: No module: ngRoute var app = angular.module('inventoryApp', ['ngCookies','ngResource', 'ngRoute']); controller.js app

我正在使用ngRoute模块,但它显示了我的错误,所以使用该模块是否需要添加额外的文件我搜索了,但我没有找到像其他模块一样的资源,cookies我们需要单独的文件,是否也是ngRoute的?如果是,那么我在哪里可以找到

错误:-

Uncaught Error: No module: ngRoute 
var app = angular.module('inventoryApp', ['ngCookies','ngResource', 'ngRoute']);
controller.js

app.controller('storesController', function ($rootScope, $scope, $location, $cookies, $routeParams) {

});

您确实需要一个单独的文件。请参阅:

首先在HTML中包含angular-route.js:


从AngularJS 1.2.0开始,ngRoute在其自己的模块中分离

下载:

更改日志:

<script src='angular.js'>
<script src='angular-route.js'>