docs(metadata): provide deprecation messages

This commit is contained in:
Yegor Jbanov 2015-11-02 10:17:17 -08:00
parent 37c65b74e3
commit c4129071ef
1 changed files with 14 additions and 7 deletions

View File

@ -18,10 +18,13 @@ class Directive extends DirectiveMetadata {
{String selector, {String selector,
List<String> inputs, List<String> inputs,
List<String> outputs, List<String> outputs,
@deprecated List<String> properties, @Deprecated('Use `inputs` instead')
@deprecated List<String> events, List<String> properties,
@Deprecated('Use `outputs` instead')
List<String> events,
Map<String, String> host, Map<String, String> host,
@deprecated List bindings, @Deprecated('Use `providers` instead')
List bindings,
List providers, List providers,
String exportAs, String exportAs,
String moduleId, String moduleId,
@ -48,15 +51,19 @@ class Component extends ComponentMetadata {
{String selector, {String selector,
List<String> inputs, List<String> inputs,
List<String> outputs, List<String> outputs,
@deprecated List<String> properties, @Deprecated('Use `inputs` instead')
@deprecated List<String> events, List<String> properties,
@Deprecated('Use `outputs` instead')
List<String> events,
Map<String, String> host, Map<String, String> host,
@deprecated List bindings, @Deprecated('Use `providers` instead')
List bindings,
List providers, List providers,
String exportAs, String exportAs,
String moduleId, String moduleId,
Map<String, dynamic> queries, Map<String, dynamic> queries,
@deprecated List viewBindings, @Deprecated('Use `viewProviders` instead')
List viewBindings,
List viewProviders, List viewProviders,
ChangeDetectionStrategy changeDetection, ChangeDetectionStrategy changeDetection,
String templateUrl, String templateUrl,