Monday, October 10, 2016

AngularJS - Routing

If you want to build a SPA (Single Page Application) and want to navigate to the different pages in your application with no page reloading, you need to use the routing module of AngularJS.

To use the  AngularJS routing module in your application, you need to download and reference to the routing module angular-route.js

You can also use third party module ui-route for routing. It supports everything ng-route can do as well as has many other extra functions.

<script src="scripts/angular-route.min.js"></script>
                                   or
<script src="scripts/angular-ui-router.min.js"></script>


No comments:

Post a Comment