How to detect browser with Angular? March 1, 2023 by Tarik I have used this before and it worked well. const isIEOrEdge = /msie\s|trident\/|edge\//i.test(window.navigator.userAgent)