O'Reilly logo

Learning Web Development with Bootstrap and AngularJS by Stephen Radford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, we transformed our application from a single page into a multi-page view and multi-route app that we can build our contacts manager upon. We started by planning out the essential routes in our application before installing the requisite module.

We then looked at how we can use the config method on our own module to set up our routes. This was done by injecting the $routeProvider service and using the when and other methods provided. This allowed us to set up static and dynamic routes containing parameters.

Finally, we looked at how we can remove the # symbol from the URL using HTML5's pushState and how we can link both types of routes. In the next chapter, we'll populate our partials with layouts we'll be building using ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required