What is the use of subscribe in Angular 6?
In Angular 6, the subscribe()
is used as a method in the Observable type. This is a type that is used as a utility for asynchronously and synchronously streaming data to a variety of components that have been subscribed to the observable.
BY Best Interview Question ON 02 Feb 2020