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

Unified Diff: third_party/pkg/angular/example/web/animation/stress_demo.dart

Issue 256553002: Revert "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/stress_demo.dart
diff --git a/third_party/pkg/angular/example/web/animation/stress_demo.dart b/third_party/pkg/angular/example/web/animation/stress_demo.dart
deleted file mode 100644
index 2f9b9a488cf77e43ec0cd554b8934cf573d062a1..0000000000000000000000000000000000000000
--- a/third_party/pkg/angular/example/web/animation/stress_demo.dart
+++ /dev/null
@@ -1,33 +0,0 @@
-part of animation;
-
-@Component(
- selector: 'stress-demo',
- template: '''
- <div class="stress-demo">
- <button ng-click="ctrl.visible = !ctrl.visible">
- Toggle Visibility</button>
- <div>
- <div class="stress-box" ng-repeat="number in ctrl.numbers"></div>
- </div>
- </div>
- ''',
- publishAs: 'ctrl',
- applyAuthorStyles: true)
-class StressDemo {
- bool _visible = true;
- final numbers = <int>[1, 2];
-
- // When visibility changes add or remove a large chunk of elements.
- void set visible(bool value) {
- if (value) {
- for (int i = 0; i < 200; i++) {
- numbers.add(i);
- }
- } else {
- numbers.clear();
- }
- _visible = value;
- }
-
- bool get visible => _visible;
-}

Powered by Google App Engine
This is Rietveld 408576698