Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/pkg/angular/example/web/animation/repeat_demo.dart

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 part of animation;
2
3 @Component(
4 selector: 'repeat-demo',
5 template: '''
6 <div class="repeat-demo">
7 <button ng-click="ctrl.addItem()">Add Thing</button>
8 <button ng-click="ctrl.removeItem()">Remove Thing
9 </button>
10 <ul>
11 <li ng-repeat="outer in ctrl.items">
12 <ul>
13 <li ng-repeat="inner in ctrl.items">{{inner}}</li>
14 </ul>
15 </li>
16 </ul>
17 </div>
18 ''',
19 publishAs: 'ctrl',
20 applyAuthorStyles: true)
21 class RepeatDemo {
22 var thing = 0;
23 final items = [];
24
25 void addItem() {
26 items.add("Thing ${thing++}");
27 }
28
29 void removeItem() {
30 if (items.isNotEmpty) items.removeLast();
31 }
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698