We recently published a angular application to production. There was couple of tickets created with "Application failing in Enterprise mode in IE" .
What is Enterprise mode?
A compatibility mode that runs on Internet Explorer 11 on Windows 8.1 Update and Windows 7 devices, lets websites render using a modified browser configuration that’s designed to emulate either Windows Internet Explorer 7 or Windows Internet Explorer 8, avoiding the common compatibility problems associated with web apps written and tested on older versions of Internet Explorer.
Issue
AngularJS 1.3 has dropped support for IE8.
How to run angular applications in IE 8?
I spent some time on running angular applications in IE 8.
Solution
1) Detect if the browser is IE 8.
2) After detecting the browser get the script which is relevant to IE 8 . Angular js file < 1.3
3) All others browsers we can use the latest scripts
These 3 steps can be achieved as shown below
<!--[if lte IE 8]> <script type="text/javascript" src="/Scripts/core/angular-1.2.28.js"></script> <![endif]--> <!--[if gte IE 9]><!--> <script src=@CacheBuster.Tag("/Scripts/release/core.min.js")></script> <!--<![endif]-->
I have written a simple code which gets the data and displays it in a table using ng-repeat.
Note: We can use only the directives which would run in IE 8
Edit code in plunker
<!DOCTYPE html> <html ng-app="myApp"> <head> <link data-require="bootstrap@3.0.0" data-semver="3.0.0" rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" /> <link rel="stylesheet" href="style.css" /> <script src="script.js"></script> <!--[if lte IE 8]> <script type="text/javascript" src="/Scripts/core/angular-1.2.28.js"></script> <![endif]--> <!--[if gte IE 9]><!--> <!--<![endif]--> </head> <body> <h1>Running angular application in IE 8</h1> <script data-require="angular.js@*" data-semver="1.2.28" src="https://code.angularjs.org/1.2.28/angular.js"></script> <meta charset="utf-8" /> <div class="container" ng-controller="userCtrl"> <h2>Angular sorting</h2> <div class="row"> <table class="table table-bordered table-striped table-hover"> <thead> <tr> <th ng-click="sort('StudentNo')"> Student No <span class="glyphicon sort-icon" ng-show="sortKey=='StudentNo'" ng-class="{'glyp hicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
</th> <th ng-click="sort('FirstName')"> First Name<span class="glyphicon sort-icon"
ng-show="sortKey=='FirstName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span> </th> </tr> </thead> <tbody> <tr ng-repeat="users in Users |orderBy:sortKey:reverse"> <td>{{users.StudentNo}}</td> <td>{{users.FirstName}}</td> </tr> </tbody> </table> </div> </div> <script> //declare a module var myAppModule = angular.module('myApp', []); myAppModule.controller('userCtrl', function ($scope) { $scope.Users = [ { "StudentNo": "1", "FirstName": "Prathap"}, { "StudentNo": "2","FirstName": "John"}, { "StudentNo": "3","FirstName": "Peter"} ]; //Function for sorting $scope.sort = function(keyname) { $scope.sortKey = keyname; //set the sortKey to the param passed $scope.reverse = !$scope.reverse; //if true make it false and vice versa }; }); </script> </body> </html>
Very good article.
ReplyDeleteAC Mechanic
AC seller and dealer
advertising agents
aerobic training institutes
Astrology Service
Top Auditoriums
Autospares dealers and suppliers
Battery dealers and suppliers
Automobile tyres dealer and supplier
Unisex beauty spa centers
Experienced bike mechanic
Multibrand bike showroom
Leading book shop and centers
Bulk sms service providers
Experienced business consultant
Profissional camera rent and sales
Camera service centers
Car jewellery shops
Leading car mechanic
Veg and non-veg catering services
Security system dealers
Leading ceramic dealers
computer sales and service centers
FON ANY ENQUIRY CONTACT +91-7871360360
Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area.We are providing AngularJs training in velachery.
ReplyDeleteFor more details: AngularJs training in velachery
I accept there are numerous more pleasurable open doors ahead for people that took a gander at your site.Those guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp great deal more around this condition.WE are providing AngularJs training in Velachery.
ReplyDeleteFor more details:AngularJs training in Velachery
This post very useful for enhancing my knowledge. I got huge information in this post. Thank you!!!
ReplyDeleteTableau Training in Chennai
Tableau Course in Chennai
Excel Training in Chennai
Corporate Training in Chennai
Pega Training in Chennai
Power BI Training in Chennai
Embedded System Course Chennai
Linux Training in Chennai
Tableau Training in Chennai
Tableau Course in Chennai
Great job and the blog going great. Keep going.
ReplyDeleteSoftware Testing Course in Madurai
Software Testing Classes in Madurai
Software Testing Training in Madurai
Software Testing Course in Coimbatore
Best Software Testing Training Institute in Coimbatore
Software Testing Institute in Coimbatore
I feel satisfied to read your blog, you have been delivering a useful & unique information to our vision.keep blogging.
ReplyDeleteRegards,
ccna Training in Chennai
ccna course in Chennai
PHP Training in Chennai
ReactJS Training in Chennai
ccna course in chennai
ccna training in chennai
This was an well written blog and I am happy reading your blog.
ReplyDeleteSpoken English Class in Thiruvanmiyur
Spoken English Classes in Adyar
Spoken English Classes in T-Nagar
Spoken English Classes in Vadapalani
Spoken English Classes in Porur
Spoken English Classes in Anna Nagar
Spoken English Classes in Chennai Anna Nagar
Spoken English Classes in Perambur
Spoken English Classes in Anna Nagar West
Such an amazing blog with new updates. I love to learn more about this topic. Waiting for more like this.
ReplyDeleteAngularJS Training in Chennai
AngularJS course in Chennai
Angular 6 Training in Chennai
ReactJS Training in Chennai
Web Designing course in Chennai
Salesforce Training in Chennai
ccna course in Chennai
Ethical Hacking course in Chennai
AngularJS Training in Velachery
AngularJS Training in Anna Nagar
Wonderful Post!!! Thanks for sharing this great blog with us.
ReplyDeleteAndroid Training in Chennai
android training center in chennai
android classes in chennai
Android Course in Chennai
Android training in Guindy
Android Training in Tambaram
Python Training in Chennai
Big data training in chennai
SEO training in chennai
JAVA Training in Chennai
Excellent blog thanks for sharing Online marketing has changed how businesses run and succeed in today’s highly competitive world. With Adhuntt Media, your E-commerce store can reach for the stars and find the right customers. Our team of marketing analysts can analyze, strategize and implement the perfect path for you to take to beat your competition and come out as #1.
ReplyDeletedigital marketing agency in chennai
Nice blog thanks for sharing Karuna Nursery Gardens provides you with the best nursery solutions for setting you up with a glamorous landscape. That’s right, you have finally found the perfect nursery to set you up with the best house garden in Chennai.
ReplyDeleteplant nursery in chennai
Nice blog thanks for sharing Looking for the best place in Chennai to get your cosmetics at wholesale? The Pixies Beauty Shop is the premium wholesale cosmetics shop in Chennai that has all the international brands your salon deserves.
ReplyDeletebeauty Shop in Chennai
ReplyDeleteNice blog! Thanks for sharing this valuable information
Best IELTS Coaching in Bangalore
IELTS Training in Bangalore
IELTS Coaching centre in Chennai
IELTS Classes in Bangalore
IELTS Coaching in Bangalore
IELTS Coaching centre in coimbatore
IELTS Coaching in madurai
IELTS Coaching in Hyderabad
Selenium Training in Chennai
Ethical hacking course in bangalore
This blog is very interesting to read, i gathered more useful information from this blog..
ReplyDeleteData Science Course in Chennai
Data Science Courses in Bangalore
Data Science Training in Bangalore
Best Data Science Courses in Bangalore
Data Science Institute in Bangalore
Data Science Training Institutes in Bangalore
Data Science Training in BTM
AWS Training in Bangalore
DevOps Training in Bangalore
PHP Training in Bangalore
Your style is very unique compared to other folks I've read stuff from. Many thanks for posting when you have the opportunity, blog Guess I will just book mark this site.
ReplyDeleteIELTS Coaching in chennai
German Classes in Chennai
GRE Coaching Classes in Chennai
TOEFL Coaching in Chennai
spoken english classes in chennai | Communication training
Nice post and I am very happy to visit your blog. Keep doing...!
ReplyDeleteOracle Training in Chennai
Oracle Training in Bangalore
Oracle Training in Coimbatore
Tableau Training in Chennai
Tableau Training in Bangalore
Amazing Information! keep updating your Blog like this.
ReplyDeleteTally Institute in Chennai
Tally Training in Chennai
Amazing post... Thanks for sharing...
ReplyDeleteDOT NET Training in Chennai
DOT NET Course in Chennai
Great post. keep sharing such a worthy information
ReplyDeleteEthical Hacking Course in Chennai
Ethical Hacking course in Bangalore
Nice information.. keep updating
ReplyDeleteRPA Training in Chennai
RPA course in Chennai
RPA Training Institute in Chennai
RPA Training in Bangalore
Robotic Process Automation Training in Bangalore
RPA Classes in Bangalore
Fabulous blog keep updating like this.....
ReplyDeleteBest DevOps Training in Chennai
DevOps Training institute in Chennai
DevOps Course in Bangalore
DevOps Training Institutes in Bangalore
ReplyDeleteGreat post.Thanks for sharing such a worthy information...
SEO Training in Bangalore
SEO Course in Bangalore
SEO Training Institute in Bangalore
Best SEO Training Institute in Bangalore
SEO Training Bangalore
This post is so interactive and informative.keep update more information...
ReplyDeleteHadoop Training in Anna Nagar
Big data training in chennai