Skip to content

Commit a905837

Browse files
author
Dean Sofer
committed
Updated select2 and changed ui-remove to ui-if
1 parent 6c393a3 commit a905837

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

css/app.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ section {
2525
background-position: -48px -96px;
2626
}
2727

28-
/*** Remove ***/
29-
#directives-remove ul.piped-list {
28+
/*** If ***/
29+
#directives-if ul.piped-list {
3030
padding: 0;
3131
margin: 10px 0;
3232
}
33-
#directives-remove .piped-list li {
33+
#directives-if .piped-list li {
3434
display: inline-block;
3535
border-left: 2px solid;
3636
margin-left: 5px;
3737
padding-left: 10px;
3838
}
39-
#directives-remove .piped-list li:first-child {
39+
#directives-if .piped-list li:first-child {
4040
border-left: none;
4141
margin-left: 0;
4242
}

index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<li><a href="#directives-keypress">Keypress</a></li>
5252
<li><a href="#directives-mask">Mask</a></li>
5353
<li><a href="#directives-modal">Modal</a></li>
54-
<li><a href="#directives-remove">Remove</a></li>
54+
<li><a href="#directives-if">If</a></li>
5555
<li><a href="#directives-reset">Reset</a></li>
5656
<li><a href="#directives-scrollfix">Scrollfix</a></li>
5757
<li><a href="#directives-select2">Select2</a></li>
@@ -296,24 +296,24 @@ <h3>How?</h3>
296296
</pre>
297297
</section>
298298

299-
<section id="directives-remove">
299+
<section id="directives-if">
300300
<div class="page-header">
301-
<h1>Remove</h1>
301+
<h1>If</h1>
302302
</div>
303303
<div class="row">
304304
<div class="span6">
305305
<h3>What?</h3>
306306
<p>Remove elements from the DOM completely instead of just hiding it.</p>
307307
<div class="well">
308-
<h4>Using <code>ng-hide</code></h4>
308+
<h4>Using <code>ng-show</code></h4>
309309
<ul class="piped-list">
310-
<li ng-hide="true">First</li>
310+
<li ng-show="false">First</li>
311311
<li>Middle</li>
312312
<li>Last</li>
313313
</ul>
314-
<h4>Using <code>ui-remove</code></h4>
314+
<h4>Using <code>ui-if</code></h4>
315315
<ul class="piped-list">
316-
<li ui-remove="true">First</li>
316+
<li ui-if="false">First</li>
317317
<li>Middle</li>
318318
<li>Last</li>
319319
</ul>
@@ -327,7 +327,7 @@ <h3>Why?</h3>
327327
<h3>How?</h3>
328328
<pre class="prettyprint linenums" ng-non-bindable>
329329
&lt;ul class="piped-list"&gt;
330-
&lt;li ui-remove=&quot;true&quot;&gt;First&lt;/li&gt;
330+
&lt;li ui-if=&quot;false&quot;&gt;First&lt;/li&gt;
331331
&lt;li&gt;Middle&lt;/li&gt;
332332
&lt;li&gt;Last&lt;/li&gt;
333333
&lt;/ul&gt;
@@ -632,7 +632,7 @@ <h3>What?</h3>
632632
<p>Get the length attribute of an array, string, or object</p>
633633
<div class="well">
634634
<p><input ng-model="lengthFilter" placeholder="Filter the list"></p>
635-
<p>There are {{items | filter:lengthFilter | length}} items.</p>
635+
<p>There are {{(items | filter:lengthFilter).length}} items.</p>
636636
<ul>
637637
<li ng-repeat="value in items | filter:lengthFilter">{{value}}</li>
638638
</ul>
@@ -646,7 +646,7 @@ <h3>Why?</h3>
646646
<h3>How?</h3>
647647
<pre class="prettyprint linenums" ng-non-bindable>
648648
&lt;input ng-model=&quot;lengthFilter&quot; placeholder=&quot;Filter the list&quot;&gt;
649-
&lt;p&gt;There are {{items | filter:lengthFilter | length}} items.&lt;/p&gt;
649+
&lt;p&gt;There are {{(items | filter:lengthFilter).length}} items.&lt;/p&gt;
650650
&lt;ul&gt;
651651
&lt;li ng-repeat=&quot;value in items | filter:lengthFilter&quot;&gt;{{value}}&lt;/li&gt;
652652
&lt;/ul&gt;

lib/select2

Submodule select2 updated 2 files

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