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,
List<String> inputs,
List<String> outputs,
@deprecated List<String> properties,
@deprecated List<String> events,
@Deprecated('Use `inputs` instead')
List<String> properties,
@Deprecated('Use `outputs` instead')
List<String> events,
Map<String, String> 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<String> inputs,
List<String> outputs,
@deprecated List<String> properties,
@deprecated List<String> events,
@Deprecated('Use `inputs` instead')
List<String> properties,
@Deprecated('Use `outputs` instead')
List<String> events,
Map<String, String> host,
@deprecated List bindings,
@Deprecated('Use `providers` instead')
List bindings,
List providers,
String exportAs,
String moduleId,
Map<String, dynamic> queries,
@deprecated List viewBindings,
@Deprecated('Use `viewProviders` instead')
List viewBindings,
List viewProviders,
ChangeDetectionStrategy changeDetection,
String templateUrl,