Avoiding External State Using Observable Pipelines

Learn of the ways in which external states can be avoided using pipelines.

Example: Counting even ticks with a set interval

In the following example, we count the even numbers that interval has yielded so far. We do that by creating an Observable from interval ticks and increasing evenTicks when the tick we receive is an even number:

Get hands-on with 1200+ tech skills courses.