Create an Observable using RxJS: Import the Observable import { Observable } from 'rxjs' ; The Observable execution deliver three types of values: "Next" - sends a value such as a Number, a String, an Object, etc. "Error - sends the Error or exception. "Complete" - does not send a value after the Complete ngOnInit (): void { this . observable$ = new Observable ( subscriber => { subscriber . next ( 1 ); subscriber . next ( 2 ); subscriber . next ( 3 ); subscriber . complete (); //Complete the subscribing here subscriber . next ( 4 ); // Value not send after complete }); this . observable$ . subscribe ( value => { console . log ( value );