Wrapping Up

Angular 2.0 is a brand-new total rewrite of the AngularJS framework. In this chapter we covered a lot of ground with this new tool. You first learned to program in Angular using good old JavaScript—ECMAScript 5. Then we dug into the metadata to discover the annotations and properties that are needed to configure pipes, services, and components in Angular. Along the way we figured out how to use lightweight test doubles for the HTTP module and the Rx.Observable. These classes play a vital role in communicating with the back-end server. Finally we ran the code coverage tool to confirm that our effort was in fact test driven and that no code was written without a failing test that prompted its design.

The automated tests we wrote so ...

Get Test-Driving JavaScript Applications 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.