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
index.html
<script src="angular-route.js"></script>
2. Load the module in your application by adding it as a dependent module:
app.js
var parking = angular.module("parking", ["ngRoute"]);
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +