Displaying data clean up.

This commit is contained in:
David East 2015-04-22 04:35:13 -07:00
parent b5fdd6ba52
commit 6fe86825b5
1 changed files with 12 additions and 2 deletions

View File

@ -286,7 +286,17 @@
code. code.
<p *if="names.length > 3">You have many friends!</p> <p *if="names.length > 3">You have many friends!</p>
p You'll also need to add the If directive so Angular knows to include it. p You'll also need to add the If directive so Angular knows to include it.
p [TODO: CODE]
pre.prettyprint.lang-javascript
code.
//ES5
directives: [angular.For, angular.If]
pre.prettyprint.lang-typescript
code.
//Typescript
import {Component, View, bootstrap, For, If} from
...
directives: [For, If]
p. p.
As there are currently 5 items it the list, you'll see the message congratulating you on your many friends. As there are currently 5 items it the list, you'll see the message congratulating you on your many friends.
Remove two items from the list, reload your browser, and see that the message no longer displays. Remove two items from the list, reload your browser, and see that the message no longer displays.