From c4129071efb1f3591d5170d5c81c2c761a2dbd91 Mon Sep 17 00:00:00 2001 From: Yegor Jbanov Date: Mon, 2 Nov 2015 10:17:17 -0800 Subject: [PATCH] docs(metadata): provide deprecation messages --- modules/angular2/src/core/metadata.dart | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/modules/angular2/src/core/metadata.dart b/modules/angular2/src/core/metadata.dart index d2710f29e7..fdc7279a8d 100644 --- a/modules/angular2/src/core/metadata.dart +++ b/modules/angular2/src/core/metadata.dart @@ -18,10 +18,13 @@ class Directive extends DirectiveMetadata { {String selector, List inputs, List outputs, - @deprecated List properties, - @deprecated List events, + @Deprecated('Use `inputs` instead') + List properties, + @Deprecated('Use `outputs` instead') + List events, Map host, - @deprecated List bindings, + @Deprecated('Use `providers` instead') + List bindings, List providers, String exportAs, String moduleId, @@ -48,15 +51,19 @@ class Component extends ComponentMetadata { {String selector, List inputs, List outputs, - @deprecated List properties, - @deprecated List events, + @Deprecated('Use `inputs` instead') + List properties, + @Deprecated('Use `outputs` instead') + List events, Map host, - @deprecated List bindings, + @Deprecated('Use `providers` instead') + List bindings, List providers, String exportAs, String moduleId, Map queries, - @deprecated List viewBindings, + @Deprecated('Use `viewProviders` instead') + List viewBindings, List viewProviders, ChangeDetectionStrategy changeDetection, String templateUrl,