Reputation: 18660
I need to detect the browser type and version from where a Angular app is being accessed. I know there are a few JS libraries out there but don't know which one to use.
The web app is supposed to be supported on the latest editions of Chrome, Safari, Firefox, and Internet Explorer.
I've found this answer but I don't know if is the right way to go, so any advice around this? How I can achieve this?
Upvotes: 0
Views: 4326
Reputation: 438
If browser not support JavaScript
then you can not display that message using JavaScript you need to use
<noscript> Message that has to display </noscript>
and you can apply css to it
if support and you want to check version using ng-device-detector
is not possible because it only detect device types, OS types and browser name not version. I found this article which may help. If you still wanna use ng-device-detector
here is GitHub source and this is plunker.
Upvotes: 1