Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uncaught Error: No module: ngRoute

Tags:

angularjs

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

Error:-

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

controller.js

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

});
like image 933
Wajihurrehman Avatar asked Nov 15 '13 18:11

Wajihurrehman


1 Answers

You do need a separate file. Please see:

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

First include angular-route.js in your HTML:

<script src='angular.js'>
<script src='angular-route.js'>
like image 148
cafonso Avatar answered Sep 20 '22 00:09

cafonso