To get AngularJS to work in IE7 and IE8, I add id="ng-app" and class="ng-app" to my ng-app element:
<html id="ng-app" class="ng-app" ng-app="myApp">
<div ng-view></div>
</html>
This has always worked in the past, but now I've added class="ng-app" to two different projects, and in both the view no longer renders in any browser. Has the way to do IE7/8 compatibility changed? I'm using version 1.0.2 from the CDN.
Thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…