Аголна не успеа да bootstrap во IE9

I’ve been playing around with Angular.js for the last long while and for the life of me, I could NOT get my Angular apps to launch in IE9.  They all work fine in IE11 but IE9 would just show the curly braces and similar bits.

I searched around and couldn’t find anyone complaining about his problem.  It worked fine in Chrome, IE11, just not IE9.

I was thrown off by the fact that the IE console was giving me errors like this:

SEC7111: HTTPS security is compromised by res://ieframe.dll/forbidframing.htm

That error had me thinking there was some problem downloading the angular or other libraries that I needed.  Како што се испоставува, this was not the issue.

By poking around the internets, I finally found out that the phrase I needed to search for was “bootstrap” and that it seemed like the bootstrapping was failing.  На крајот, my problem was that I had decorated my <html> tag with the ng-app attribute, како и во:

<html ng-app="MatrixApp">

И, that didn’t work for IE9.  Наместо, I wrapped all the rest of the HTML in the <тело> inside a div and references MatrixApp that way.

Problem solved.

Hopefully this saves someone some grief.

</крајот>

Остави Одговори

Вашата е-маил адреса нема да бидат објавени. Задолжителни полиња се означени *