Answers for "ng mobile hide hidden display none"

0

ng mobile hide hidden display none

<button *ngIf="isMobile()">...</button>

isMobile() {
    const width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
    return width < 768;
  }
Posted by: Guest on March-08-2022

Browse Popular Code Answers by Language