Skip to content

Instantly share code, notes, and snippets.

@koshdnb
Last active September 18, 2015 11:13
Show Gist options
  • Select an option

  • Save koshdnb/003f290461e282387471 to your computer and use it in GitHub Desktop.

Select an option

Save koshdnb/003f290461e282387471 to your computer and use it in GitHub Desktop.
ie8 md

What you need

es5-shim jQuery 1.* AngularJS 1.4.* build from this repo (some poly-fills are baked in and minor fixes to enable IE8 support) Example

<title>Angular 1.4 IE8</title> <script src="angular.js"></script>

tips

When using $q promise methods catch or finally in IE8 use bracket notation instead of dot notation. Same goes for $http delete method. IE8 does not like dot notation with these reserved words.

// no promise.catch(function(){});

// yes promise'catch'; Other stuff

Use attributes for directives, e.g.

instead of custom element If you want to use custom elements, you need to make IE8 aware of them first, e.g.document.createElement('ng-view'); Use ng-style instead of style="{{ someCss }}" Check any additional angular or third party modules you are using for reserved words described above. If you find any, use a search and replace to change from dot notation to bracket notation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment