I am trying to access the window
object of the browser with Angular 2. I have seen some solutions on stack overflow but they don't work with NgModules (Angular 2 RC5 version).
I just want to detect the browser (chrome, firefox, safari, opera, IE) and put it as a class in <body>
tag
Any pointers please?