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

Side by Side Diff: third_party/pkg/angular/example/web/animation/visibility_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: 'visibility-demo',
5 template: '''
6 <div class="visibility-demo">
7 <button ng-click="ctrl.visible = !ctrl.visible">Toggle Visibility</button>
8 <div class="visible-if" ng-if="ctrl.visible">
9 <p>Hello World. ng-if will create and destroy
10 dom elements each time you toggle me.</p>
11 </div>
12 <div class="visible-hide" ng-hide="ctrl.visible">
13 <p>Hello World. ng-hide will add and remove
14 the .ng-hide class from me to show and
15 hide this view of text.</p>
16 </div>
17 </div>
18 ''',
19 publishAs: 'ctrl',
20 applyAuthorStyles: true)
21 class VisibilityDemo {
22 bool visible = false;
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698