Skip to content

Commit 8d2ba57

Browse files
committed
Merge pull request angular-ui#13 from dandoyon/ieshiv-issue-195
Documented ieshiv ### Put up after PR 202
2 parents 7a3c232 + 76558e0 commit 8d2ba57

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

index.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,35 @@ <h1>Global Defaults</h1>
126126
</div>
127127
</section>
128128

129+
130+
<section id="ieshiv">
131+
<div class="page-header">
132+
<h1>IE Shiv <small>shim or whatever you wanna call it</small></h1>
133+
</div>
134+
135+
<h3>Why?</h3>
136+
<p>In brief, custom tag elements (and thus directives that support them) like <code>&lt;ng-view&gt;</code> or <code>&lt;ui-currency&gt;</code> 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 <a href="http://docs.angularjs.org/guide/ie" target="_blank">recipe</a> for doing this, however, our solution saves you the fuss.</p>
137+
138+
<h3>How?</h3>
139+
<p>Below is how you would incorporate shiv by putting it into the <code>&lt;head&gt;</code> of your html code. For more,
140+
see <a href="https://github.com/angular-ui/angular-ui/tree/master/common/ieshiv" target="_blank">code page</a> on github
141+
</p>
142+
<pre class="prettyprint linenums" ng-non-bindable>&lt;head&gt;
143+
144+
&lt;!--[if lte IE 8]&gt;
145+
&lt;script&gt;
146+
// The ieshiv takes care of our ui.directives and AngularJS's ng-view, ng-include and ng-pluralize.
147+
// However, IF you have custom directives (yours or someone else's) then
148+
// add the directly containing module into <code>window.myAngularModules</code>
149+
150+
window.myAngularModules = [ 'yourModule.ThatContainsAtLeastSomeDirectives', 'somebodyElsesModule' ]; // optional
151+
&lt;/script&gt;
152+
&lt;script src="build/angular-ui-ieshiv.js"&gt;&lt;/script&gt;
153+
&lt;![endif]--&gt;
154+
155+
&lt;/head&gt;</pre>
156+
</section>
157+
129158
<section id="directives-jq">
130159
<div class="page-header">
131160
<h1>jQuery Passthrough</h1>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy