The ngRoute
module provides routing and deeplinking services and directives for angular apps.
First include angular-route.js
in your HTML:
<script src="angular.js">
<script src="angular-route.js">
You can also find this file on the Google CDN, Bower (as angular-route
), and on code.angularjs.org.
Then load the module in your application by adding it as a dependant module:
angular.module('app', ['ngRoute']);
With that you're ready to get started!