Chapter 5. ReactiveX Observables

This chapter will cover the following recipes:

  • Basic utilization of Observables with HTTP
  • Implementing a Publish-Subscribe model using Subjects
  • Creating an Observable Authentication Service using BehaviorSubjects
  • Building a generalized Publish-Subscribe service to replace $broadcast, $emit, and $on
  • Using QueryLists and Observables to follow the changes in ViewChildren
  • Building a fully featured AutoComplete with Observables

Introduction

Before you get into the meat of Angular 2 Observables, it is important to first understand the problem you are trying to solve.

A frequently encountered scenario in software is where you are expecting some entity to broadcast that something happened; let's call this an "event" (distinct from ...

Get Angular 2 Cookbook 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.