Chapter 9Test-Drive Angular 2

Angular 2—we’ll refer to it from here on as Angular—is a total rewrite of the AngularJS framework. The complete revamp was based on feedback and learnings from the extensive use of AngularJS 1.x in the industry. Angular is written using TypeScript. It was created with speed and performance improvements in mind. This chapter uses Angular 2 release candidate 4 (rc-4).

Creating Angular applications is quite different from creating AngularJS 1.x applications. So, testing Angular applications is also different. Angular applications are built using components, services, and pipes, and all these are configured using annotations. Furthermore, the dependencies for components and services are injected more explicitly ...

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.