This Lesson is for Members

Subscribe today and get access to all lessons! Plus direct HD download for offline use, enhances transcripts, member comment forums, and iTunes "podcast" RSS feed. Level up your skills now!

Unlock This Lesson

Already subscribed? Sign In

Autoplay

    Observables are the foundation in RxJS

    André StaltzAndré Staltz

    Let's conclude this course by reviewing what an Observable is: a way of representing many values being delivered in push-style from a lazy producer to a consumer. Let's also see how the Observable alone is not everything in RxJS. It serves as the foundation to operators, which are the most useful feature of RxJS.

    rxjsRxJS
    ^5.0.0
    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Transcript

    Transcript

    00:00 Now we know in details what an absorbable is. It's just a way of representing many values being delivered from a producer to a consumer.

    00:08 The producer is lazy, so it only starts delivering values once we call subscribe. The consumer is the set of callbacks, so the next handler, the error handler, and the complete handler.

    00:19 RXJS is primarily about this observable type, but it's much more. In fact, the observable alone is not so interesting because it's just a subscribe function that takes three callbacks.

    00:31 This library is a lot about its operators. We haven't seen about operators in this course, so I recommend that next you follow up on RXJS operators in depth. The absorbables serves as the foundation for operators. This is how we can easily compose complex, asynchronistic operations together, whereas with callbacks only, it would be quite hard to manage.

    Discuss

    Discuss