How to use observables in an Ionic framework?

devquora
devquora

Posted On: Feb 22, 2018

 

Observables are something that are not specific to Ionic or Angular and are provided by the RxJS library. Observables are almost similar to the promises but can do a lot more. It can deal with multiple values at a time rather than just resolving one value. You can even subscribe to an observable to manipulate the data which is associated with it. Observables are considered to be “lazy”, i.e. they won’t get executed until and unless they are subscribed to. Various operations can be applied to the observables for modifying it and returning a new one. You can even create your own observable. The observable patterns are combined into one with the help of subject which is preferred for simple implementations.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    IONIC Framework Interview Questions

    What is Ionic Framework?

    IONIC framework is an HTML5 platform that enables web developers to build hybrid mobile apps. Hybrid apps are those app..

    IONIC Framework Interview Questions

    What is the difference between PhoneGap, Cordova, and Ionic?

    Cordova: Cordova is a JavaScript framework that builds apps, which can access the device hardware. Cordova cannot buil..

    IONIC Framework Interview Questions

    Who developed Ionic framework?

    Ionic Framework was created by Drifty Co. in 2013 and developed by Max Lynch, Ben Sperry, and Adam Bradley...