51
51
< li > < a href ="#directives-keypress "> Keypress</ a > </ li >
52
52
< li > < a href ="#directives-mask "> Mask</ a > </ li >
53
53
< 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 >
55
55
< li > < a href ="#directives-reset "> Reset</ a > </ li >
56
56
< li > < a href ="#directives-scrollfix "> Scrollfix</ a > </ li >
57
57
< li > < a href ="#directives-select2 "> Select2</ a > </ li >
@@ -296,24 +296,24 @@ <h3>How?</h3>
296
296
</ pre >
297
297
</ section >
298
298
299
- < section id ="directives-remove ">
299
+ < section id ="directives-if ">
300
300
< div class ="page-header ">
301
- < h1 > Remove </ h1 >
301
+ < h1 > If </ h1 >
302
302
</ div >
303
303
< div class ="row ">
304
304
< div class ="span6 ">
305
305
< h3 > What?</ h3 >
306
306
< p > Remove elements from the DOM completely instead of just hiding it.</ p >
307
307
< div class ="well ">
308
- < h4 > Using < code > ng-hide </ code > </ h4 >
308
+ < h4 > Using < code > ng-show </ code > </ h4 >
309
309
< ul class ="piped-list ">
310
- < li ng-hide =" true "> First</ li >
310
+ < li ng-show =" false "> First</ li >
311
311
< li > Middle</ li >
312
312
< li > Last</ li >
313
313
</ ul >
314
- < h4 > Using < code > ui-remove </ code > </ h4 >
314
+ < h4 > Using < code > ui-if </ code > </ h4 >
315
315
< ul class ="piped-list ">
316
- < li ui-remove =" true "> First</ li >
316
+ < li ui-if =" false "> First</ li >
317
317
< li > Middle</ li >
318
318
< li > Last</ li >
319
319
</ ul >
@@ -327,7 +327,7 @@ <h3>Why?</h3>
327
327
< h3 > How?</ h3 >
328
328
< pre class ="prettyprint linenums " ng-non-bindable >
329
329
<ul class="piped-list">
330
- <li ui-remove ="true ">First</li>
330
+ <li ui-if ="false ">First</li>
331
331
<li>Middle</li>
332
332
<li>Last</li>
333
333
</ul>
@@ -632,7 +632,7 @@ <h3>What?</h3>
632
632
< p > Get the length attribute of an array, string, or object</ p >
633
633
< div class ="well ">
634
634
< 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 >
636
636
< ul >
637
637
< li ng-repeat ="value in items | filter:lengthFilter "> {{value}}</ li >
638
638
</ ul >
@@ -646,7 +646,7 @@ <h3>Why?</h3>
646
646
< h3 > How?</ h3 >
647
647
< pre class ="prettyprint linenums " ng-non-bindable >
648
648
<input ng-model="lengthFilter" placeholder="Filter the list">
649
- <p>There are {{items | filter:lengthFilter | length}} items.</p>
649
+ <p>There are {{( items | filter:lengthFilter). length}} items.</p>
650
650
<ul>
651
651
<li ng-repeat="value in items | filter:lengthFilter">{{value}}</li>
652
652
</ul>
0 commit comments