Is there a js variable/function analgous to .responsive-sm?


#1

.responisive-sm uses @media-width to determine if the css rules should be applied. But is there an analogous variable or function in js so I can use ng-show based on screen resolution? Or maybe a phonegap plugin? I’d like to have ng-show=“phone && portrait” or something similar.