Fromevent in RXJS

How to created observable with RXJS FromEvent operator?

In the post we will see how we can create observable with click event. I have created a button with click function when user click on button we are adding data in observable and also we will show data in UI.

Demo Github Stackblitz