Skip to Main Content
Angular Development with TypeScript, Second Edition
book

Angular Development with TypeScript, Second Edition

by Anton Moiseev, Yakov Fain
December 2018
Intermediate to advanced content levelIntermediate to advanced
560 pages
18h 45m
English
Manning Publications
Content preview from Angular Development with TypeScript, Second Edition

Chapter 5. Dependency injection in Angular

This chapter covers

  • Introducing dependency injection as a design pattern
  • Understanding how Angular implements DI
  • Registering object providers and using injectors
  • Adding Angular Material UI components to ngAuction

Chapter 4 discussed the router, and now the ngAuction app knows how to navigate from the home view to the product-detail view. In this chapter, we’ll concentrate on how Angular automates the process of creating objects and assembling the application from its building blocks.

An Angular application is a collection of components, directives, and services that may depend on each other. Although each component can explicitly instantiate its dependencies, Angular can do this job using its dependency ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Angular with TypeScript

Angular with TypeScript

Matt Thornfield
Angular (Full App) with Angular Material, Angularfire and NgRx

Angular (Full App) with Angular Material, Angularfire and NgRx

Academind by Maximilian Schwarzmüller GmbH
Angular in Action

Angular in Action

Jeremy Wilken

Publisher Resources

ISBN: 9781617295348Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link