The ngRoute
module (or angular route) is not bundled with angular.js
anymore and needs to be included separately. Have you remembered to do so?
From the docs:
$route is used for deep-linking URLs to controllers and views (HTML partials). It watches $location.url() and tries to map the path to an existing route definition.
Requires the ngRoute module to be installed.
And here is the documentation page with information on how to obtain angular-route.js
.
ngRoute
was moved to its own module from version 1.2.0 of angular. From the changelog:
due to 5599b55b, applications that use $route will now need to load an angular-route.js file and define a dependency on the ngRoute module.