Tuesday, June 4, 2024
180
rated 0 times [  185] [ 5]  / answers: 1 / hits: 16213  / 11 Years ago, mon, april 8, 2013, 12:00:00

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 ...


More From » internet-explorer

 Answers
47

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.


[#79039] Sunday, April 7, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
leifw

Total Points: 88
Total Questions: 103
Total Answers: 103

Location: France
Member since Thu, May 6, 2021
3 Years ago
leifw questions
;