Reset Error: No Module: ngRoute

I use the ngRoute module, but it shows me an error, so there is an additional file that needs to be added to use this module, but I did not find it, like other modules, cookies, we need separate files, since this is also for ngroute, if yes where can i find this

Mistake: -

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

controller.js

 app.controller('storesController', function ($rootScope, $scope, $location, $cookies, $routeParams) { }); 
+7
angularjs
source share
2 answers

You need a separate file. Please look:

http://docs.angularjs.org/api/ngRoute

First include angular -route.js in your HTML:

 <script src='angular.js'> <script src='angular-route.js'> 
+14
source share

Starting with AngularJS 1.2.0, ngRoute is shared in its own module.

Download: http://code.angularjs.org/1.2.1/

Changelog: https://github.com/angular/angular.js/blob/master/CHANGELOG.md

+6
source share

All Articles