How can I add class to an element if user is opening page in Internet explorer?
ng-class="{ie : navigator.appName == 'Microsoft Internet Explorer'}"
How can I add class to an element if user is opening page in Internet explorer?
ng-class="{ie : navigator.appName == 'Microsoft Internet Explorer'}"
A basic solution to your problem is, first detect browser and store it to a variable. Then write a conditional expression in your ng-class depending on your browser. Two great related article is already given in the comment section.