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

Unified Diff: third_party/pkg/angular/lib/directive/ng_show_hide.dart

Issue 1058283006: Update pubspecs and dependencies to get pkgbuild tests working. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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/lib/directive/ng_show_hide.dart
diff --git a/third_party/pkg/angular/lib/directive/ng_show_hide.dart b/third_party/pkg/angular/lib/directive/ng_show_hide.dart
deleted file mode 100644
index 560cfce76434ca8ddd27bc83536638468104f12c..0000000000000000000000000000000000000000
--- a/third_party/pkg/angular/lib/directive/ng_show_hide.dart
+++ /dev/null
@@ -1,48 +0,0 @@
-part of angular.directive;
-
-/**
- * The ngHide directive shows or hides the given HTML element based on the
- * expression provided to the ngHide attribute. The element is shown or hidden
- * by changing the removing or adding the ng-hide CSS class onto the element.
- */
-@NgDirective(
- selector: '[ng-hide]',
- map: const {'ng-hide': '=>hide'})
-class NgHideDirective {
- static String NG_HIDE_CLASS = 'ng-hide';
-
- final dom.Element element;
-
- NgHideDirective(this.element);
-
- set hide(value) {
- if (toBool(value)) {
- element.classes.add(NG_HIDE_CLASS);
- } else {
- element.classes.remove(NG_HIDE_CLASS);
- }
- }
-}
-
-/**
- * The ngShow directive shows or hides the given HTML element based on the
- * expression provided to the ngHide attribute. The element is shown or hidden
- * by changing the removing or adding the ng-hide CSS class onto the element.
- */
-@NgDirective(
- selector: '[ng-show]',
- map: const {'ng-show': '=>show'})
-class NgShowDirective {
- final dom.Element element;
-
- NgShowDirective(this.element);
-
- set show(value) {
- if (toBool(value)) {
- element.classes.remove(NgHideDirective.NG_HIDE_CLASS);
- } else {
- element.classes.add(NgHideDirective.NG_HIDE_CLASS);
- }
- }
-}
-
« no previous file with comments | « third_party/pkg/angular/lib/directive/ng_repeat.dart ('k') | third_party/pkg/angular/lib/directive/ng_src_boolean.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698