diff --git a/content/roadmaps/104-angular/content/101-rxjs-basics/101-observable-lifecycle.md b/content/roadmaps/104-angular/content/101-rxjs-basics/101-observable-lifecycle.md index 317543150..1cb930e3e 100644 --- a/content/roadmaps/104-angular/content/101-rxjs-basics/101-observable-lifecycle.md +++ b/content/roadmaps/104-angular/content/101-rxjs-basics/101-observable-lifecycle.md @@ -1 +1,12 @@ -# Observable lifecycle \ No newline at end of file +# Observable lifecycle + +An observable is a function that acts as a wrapper for a data stream. They support to pass messages inside your application. An observable is useless until an observer subscribes to it. An observer is an object which consumes the data emitted by the observable. An observer keeps receiving data values from the observable until the observable is completed, or the observer unsubscribes from the observable. Otherwise observers can receive data values from the observable continuously and asynchronously. So we can perform various operations such as updating the user interface, or passing the JSON response. + +There are 4 stages for a life cycle of an observable. + - Creation + - Subscription + - Execution + - Destruction + +Free Content +Understanding Observable LifeCycle