This chapter showed us how to use TDD to build an Angular application. The approach, up to this point, has focused on the specification from a user perspective and using TDD with a top-down approach. This technique helps us get usable and small components tested and completed for the users.
As applications grow, so does their complexity. In the next chapter, we will explore the bottom-up approach and see when to use that technique over the top-down approach.
This chapter showed us how TDD can be used to develop a component-based application with navigation by routers. Routes allow us to get a nice separation of our components and views. We looked at the usage of several Protractor locators, from CSS to repeaters, link text, and inner locators. Besides using Protractor, we also learned how to configure Karma with a headless browser, and we got to see it in action.