From 76558e0788f5b7fd9302e174e867071df2e0268a Mon Sep 17 00:00:00 2001 From: dandoyon Date: Sun, 16 Sep 2012 15:06:36 -0700 Subject: [PATCH] Documented ieshiv --- index.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/index.html b/index.html index 945c162..c1f179a 100644 --- a/index.html +++ b/index.html @@ -126,6 +126,35 @@

Global Defaults

+ +
+ + +

Why?

+

In brief, custom tag elements (and thus directives that support them) like <ng-view> or <ui-currency> are ignored by IE 8 and older. Custom tags are cool because they are terse and give semantic to your awesome html5 app. AngularJS has provided a recipe for doing this, however, our solution saves you the fuss.

+ +

How?

+

Below is how you would incorporate shiv by putting it into the <head> of your html code. For more, + see code page on github +

+
<head>
+
+<!--[if lte IE 8]>
+    <script> 
+    // The ieshiv takes care of our ui.directives and AngularJS's ng-view, ng-include and ng-pluralize.
+    // However, IF you have custom directives (yours or someone else's) then 
+    // add the directly containing module into window.myAngularModules
+
+    window.myAngularModules = [ 'yourModule.ThatContainsAtLeastSomeDirectives', 'somebodyElsesModule' ]; // optional
+    </script>
+    <script src="build/angular-ui-ieshiv.js"></script>
+<![endif]-->
+     
+</head>
+
+