Compatibility issues with Angular 1.2.27 under IE7

Source: Internet
Author: User

Recently responsible for the company's outsourcing project, foreign customers to specify to use angular, and to be compatible to IE7.

The project uses the angular version is 1.2.27, in order to be able to run under the IE7, need to do the following configuration

1. Load Json2.js

2. Load Html5shiv.js

3. Loading angular related files

4. Load the Angular-ie7-support file (this file mainly solves the problem of Ng's $sceprovider)

5. Load your angular app

Configuration is complete, the IE7 has been able to run normally, but found that the instructions are not displayed correctly, and IE8 above are operating normally.

It seems that IE7 is still doing strange ... Since the project is built with Browserify, the first suspicion is the browserify problem, tested, under IE7 browserify normal operation.

Later, after the troubleshooting, found to be an instruction template problem, for example:

< Div >    <  ng-src= "Item.imagepath"  class= "{{item.iconclass}}"</div  >

In the above template, the attribute binding of element cannot be used directly using class= "{{item.iconclass}}", instead ng-class= "Item.iconclass" will run normally!!

I can only say two words: Pit Ah!

Draft this article, hoping to help other students around the hole.

PS: Respect others original, reprint please must indicate from http://www.cnblogs.com/Raoh/p/4225454.html

Compatibility issues with Angular 1.2.27 under IE7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.