Chapter 7Create a Single-Page App Using Angular’s Router

At this point, we are starting to feel confident. We experimented with some powerful features of Postgres, quickly made great-looking screens with Bootstrap, and created a dynamic user interface without a lot of code thanks to Angular. We also have rock-solid tests for every part of it. Now, it’s time to level up.

In this chapter, we’re going to turn our simple customer search feature into a full-fledged single-page app by using Angular’s router and navigating users between pages, all within the browser. You’ll learn how to manage your Angular views in different templates—just like we do in Rails—and have them play well with the asset pipeline.

We’ll implement the first part of a ...

Get Rails, Angular, Postgres, and Bootstrap now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.