Uncaught Error: No module: ngRoute

All we need is an easy explanation of the problem, so here it is.

i am using ngRoute module but its showing me error so is there extra file need to add for using this module i search but i did’nt found like other modules resourse,cookies we need seperate files for is it for ngroute also if yes so where can i found this


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


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


How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

You do need a separate file. Please see:


First include angular-route.js in your HTML:

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

Method 2

As of AngularJS 1.2.0, ngRoute is separated in its own module.

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

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

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply