I am using Angular(14) and ngxbootstrap(https://valor-software.com/ngx-bootstrap/#/components/popover?tab=overview). I am unable to see closing the popover automatically after certain interval. It has show()/hide() functions but how do we achieve this? Show the popover and close after certain interval?
How to close popover after certain interval in Angular?
552 views Asked by Chirota At
1
According to the documentation of ngx-bootstrap you can use the
isOpenattribute to close the popover.Using the example provided in their documentation:
You could bind a function to the click event that would trigger a timeout to close your popover:
Add the
onPopOverClickmethod in the.htmlfile:And in the
.tsfile: