标签: javascript angular
有没有办法使用Angular 2检测浏览器和操作系统版本。默认的window方法已被Angular 2的窗口函数覆盖。
window
答案 0 :(得分:0)
有一个名为ng2-responsive的程序包:https://github.com/ManuCutillas/ng2-responsive可以检测浏览器和许多其他内容......
答案 1 :(得分:0)
https://github.com/KoderLabs/ng2-device-detector
通过服务提供以下属性