Skip to content

TypeScript code snippet – How to run resize event only on client side angular?

@HostListener('window:resize', ['$event'])
onResize(event) {
  event.target.innerWidth;
}
See also  Python code snippet - How to get images on flask page?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.