Angular application not working in IE?

We ran into this situation that our Angularjs application was working perfectly fine in Google Chrome, but when we started testing it in Internet Explorer nothing was working.

After doing some further investigation we noticed that IE is complaining about the following error:

“Object doesn’t support property or method ‘querySelector'”

The reason for this error was IE was running in compatibility mode and in that mode it’s running with older version of JavaScript which does not support “querySelector.”.

In order to fix the issue:

Simply turn off the compatibility mode in IE and you should be good to go !

Here is the screen shots on how to turn off compatibility mode in IE:

From your setting menu select “Compatibility View Settings”

Make sure the check-boxes are unchecked:

 

It's only fair to share...
Share on FacebookGoogle+Tweet about this on TwitterShare on LinkedIn