AngularJS is undefined in IE8

angularjs, internet-explorer, internet-explorer-8, javascript

Solution

So this was totally my bad (or the guy that started this app months ago).

My application controller had `var angular = angular || {}` at the top, IE8 didn't agree with this declaration.

After removing that all is well.

Problem

I'm working on a massive application that uses AngularJs. When I view the page in IE8 I get super nifty console errors like `Object doesn't support property or method 'module'`, `Object doesn't support property or method 'widget'`, `unable to get value of the property 'controller': object is null or undefined`, and `IE really sucks, cant you just tell them to download chrome?` After fighting with it for a while I decided to log the `typeof angular`, to which the console returned `undefined`. Everything works as expected in IE9, IE10, and all browsers that don't suck. Please help! Edit: It appears that angular is `undefined` before it gets to my first controller, so I don't think it has to do with the ieshim ...

Original source