'Hide ngx-popover only on mobile view

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?



Solution 1:[1]

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;
        }

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ashfaq Hussain