The subscribe() function is observable in Angular 2 which defines how to obtain or generate values or messages to be published. To execute a particular observable in a timely fashion, you will have to create notifications using the subscribe() method.

BY Best Interview Question ON 22 Jan 2020