ng-device-detector

Uses user-agent to set css classes or directly usable via JS.

angularjs

https://srfrnk.github.io/ng-device-detector/