Popup -How to hide a popup by clicking outside of the popup window


#1

Hi All,
I am totally new in vueJs. If any one can help me , it would be grateful.

How to hide a popup by clicking in overlay.
Following are my code

Close Screen

Price Breakdown


#2

A directive would be a good use case for this.