Is there a method in Angular 4 (TypeScript) for detecting the browser type?
I am currently working with Angular 4 and would like to explore options for identifying the browser type when my application is loaded. I specifically want to prevent my application from loading if someone is using IE, and instead display a message prompting them to switch to Chrome or Firefox.
I've attempted to address this issue by utilizing the following libraries, but they are either outdated or incompatible with Angular 4:
- https://www.npmjs.com/package/ua-parser-js - While this library supports Angular 1.x, it is not suitable for Angular 4.
- https://github.com/KoderLabs/ng2-device-detector - Encounters problems when launched on IE, rendering it ineffective.
Are there any other methods or reliable libraries available for detecting browser types in Angular 4 or directly through TypeScript?