@@ -467,6 +467,12 @@ export class DirectiveMetadata extends InjectableMetadata {
467467 */
468468 inputs : string [ ] ;
469469
470+ /**
471+ * @deprecated
472+ * Same as `inputs`. This is to enable easier migration.
473+ */
474+ properties : string [ ] ;
475+
470476 /**
471477 * Enumerates the set of event-bound output properties.
472478 *
@@ -514,6 +520,12 @@ export class DirectiveMetadata extends InjectableMetadata {
514520 */
515521 outputs : string [ ] ;
516522
523+ /**
524+ * @deprecated
525+ * Same as `outputs`. This is to enable easier migration.
526+ */
527+ events : string [ ] ;
528+
517529 /**
518530 * Specify the events, actions, properties and attributes related to the host element.
519531 *
@@ -738,10 +750,13 @@ export class DirectiveMetadata extends InjectableMetadata {
738750 */
739751 queries : StringMap < string , any > ;
740752
741- constructor ( { selector, inputs, outputs, host, bindings, exportAs, moduleId, queries} : {
753+ constructor ( { selector, inputs, outputs, properties, events, host, bindings, exportAs, moduleId,
754+ queries} : {
742755 selector ?: string ,
743756 inputs ?: string [ ] ,
744757 outputs ?: string [ ] ,
758+ properties ?: string [ ] ,
759+ events ?: string [ ] ,
745760 host ?: StringMap < string , string > ,
746761 bindings ?: any [ ] ,
747762 exportAs ?: string ,
@@ -753,6 +768,11 @@ export class DirectiveMetadata extends InjectableMetadata {
753768 this . inputs = inputs ;
754769 this . outputs = outputs ;
755770 this . host = host ;
771+
772+ // TODO: remove this once properties and events are removed.
773+ this . properties = properties ;
774+ this . events = events ;
775+
756776 this . exportAs = exportAs ;
757777 this . moduleId = moduleId ;
758778 this . queries = queries ;
@@ -856,11 +876,13 @@ export class ComponentMetadata extends DirectiveMetadata {
856876 */
857877 viewBindings : any [ ] ;
858878
859- constructor ( { selector, inputs, outputs, host, exportAs, moduleId, bindings, viewBindings ,
860- changeDetection = ChangeDetectionStrategy . Default , queries} : {
879+ constructor ( { selector, inputs, outputs, properties , events , host, exportAs, moduleId, bindings,
880+ viewBindings , changeDetection = ChangeDetectionStrategy . Default , queries} : {
861881 selector ?: string ,
862882 inputs ?: string [ ] ,
863883 outputs ?: string [ ] ,
884+ properties ?: string [ ] ,
885+ events ?: string [ ] ,
864886 host ?: StringMap < string , string > ,
865887 bindings ?: any [ ] ,
866888 exportAs ?: string ,
@@ -873,6 +895,8 @@ export class ComponentMetadata extends DirectiveMetadata {
873895 selector : selector ,
874896 inputs : inputs ,
875897 outputs : outputs ,
898+ properties : properties ,
899+ events : events ,
876900 host : host ,
877901 exportAs : exportAs ,
878902 moduleId : moduleId ,
0 commit comments