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

At this point, you’re probably starting to feel confident. You 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. You also have rock-solid tests for every part of it. Now, it’s time to level up.

In this chapter, we’ll turn our simple customer search feature into a full-fledged single-page app using Angular’s router and navigating users between pages—all within the browser. You’ll learn how to put our view templates in separate files instead of string literals inside our JavaScript code, and see how to use test-driven development (TDD) to add features. ...

Get Rails, Angular, Postgres, and Bootstrap, 2nd Edition 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.