Installing the module

AngularJS supports this feature through the $route service. This service works by mapping URLs against controllers and views. We can also allow parameter passing. This service is part of the ngRoute module and we need to declare it before using it, as follows.

1. Include angular-route.js in your HTML
<script src="angular-route.js"></script>
2. Load the module in your application by adding it as a dependent module:
var parking = angular.module("parking", ["ngRoute"]);
Related Tutorial
Follow Us #