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 9. Change detection and component lifecycle

This chapter covers

  • How Angular knows that a UI update is needed
  • Reviewing the milestones in the life of a component
  • Writing code in component lifecycle hooks

All the apps you’ve developed so far have been properly updating the UI when the user or program updates the properties of your components. How does Angular know when to update the UI? In this chapter, we’ll discuss the change detection (CD) mechanism that monitors the asynchronous events of your app and decides whether the UI should be updated or not.

We’ll also discuss the lifecycle of an Angular component and the callback method hooks you can use to provide application-specific code that intercepts important events during a component’s ...

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