As a newcomer to angular 5, I have been working on adding an 'x' button in the top right corner of a popover. Once this 'x' is clicked, the popover should be closed. Is there a way to achieve this using ng-bootstrap popover? Below is my code, where I am hoping to integrate this functionality.
<div>
<a *ngIf="conditionA" [attr.disabled]="isDisabled">
{{ authorName }}
</a>
<a *ngIf="!conditionB" href="#" (click)="showPopover(accountId)" placement="top"
popover-trigger="'outsideClick'" [ngbPopover]="popContent" #p="ngbPopover" (document:click)="closeAccount(p, $event)">{{ Display_popover }}</a>
</div>
<ng-template #popContent>
<app-account-detail></app-account-detail>
</ng-template>