How to use observables in an Ionic framework?
How to use observables in an Ionic framework?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
You can subscribe to an observable to do things with the data that it emits and observable won’t be executed until they are subscribed.
Observable sample format:
let myObservable = Observable.create(observer => {
observer.next("hello");
});
myObservable.subscribe((data) => {
console.log(data);
});