I have a NgbPopover which works fine in desktop view and in the tablet view. But I want to hide it only in the mobile view.
Any suggestions?
I have a NgbPopover which works fine in desktop view and in the tablet view. But I want to hide it only in the mobile view.
Any suggestions?
On
Hide popover I am using disable Popover
<button type="button" class="btn p-0 qty" placement="right" [ngbPopover]="popContent" [disablePopover]="isPopoverShow" >
------------------------------------------------------------------------
.TS
if (window.innerWidth < 480) {
this.isPopoverShow = true;
}else {
this.isPopoverShow = false;
}
Had to add one media query in css which hides the popover on mobile view:
complete working stackblitz here