I am using Angular 8 with the Azia theme (bootstrap 4 theme). I want to capture the close event of the dropdown when I click outside of the dropdown. In the below code snippet that show class needs to be added conditionally to hide/show dropdown. below code not working at one condition that is the outside click of dropdown due to default behavior of a theme. double click is needed to open dropdown. so i want to capture event when css changes of dropdown.
Here is my code.
<div (click)="isShowDropDown != isShowDropDown" #notification id="noti"
[ngClass]="isShowDropDown ? 'dropdown az-header-notification cursor-pointer show' : 'dropdown az-
header-notification cursor-pointer'">
// code here to show dropdown content.
</div>