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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/angular/example/web/animation/visibility_demo.dart
diff --git a/third_party/pkg/angular/example/web/animation/visibility_demo.dart b/third_party/pkg/angular/example/web/animation/visibility_demo.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5dee51f2a9f40047e59f5376ecd39425b67cdaa6
--- /dev/null
+++ b/third_party/pkg/angular/example/web/animation/visibility_demo.dart
@@ -0,0 +1,23 @@
+part of animation;
+
+@Component(
+ selector: 'visibility-demo',
+ template: '''
+ <div class="visibility-demo">
+ <button ng-click="ctrl.visible = !ctrl.visible">Toggle Visibility</button>
+ <div class="visible-if" ng-if="ctrl.visible">
+ <p>Hello World. ng-if will create and destroy
+ dom elements each time you toggle me.</p>
+ </div>
+ <div class="visible-hide" ng-hide="ctrl.visible">
+ <p>Hello World. ng-hide will add and remove
+ the .ng-hide class from me to show and
+ hide this view of text.</p>
+ </div>
+ </div>
+ ''',
+ publishAs: 'ctrl',
+ applyAuthorStyles: true)
+class VisibilityDemo {
+ bool visible = false;
+}

Powered by Google App Engine
This is Rietveld 408576698