fix(ivy): merged host bindings functions should take superclass hostVars into account (#27013)

PR Close #27013
This commit is contained in:
Kara Erickson
2018-11-08 11:46:33 -08:00
committed by Andrew Kushnir
parent 2f36a9591d
commit 552836ebf0
3 changed files with 62 additions and 36 deletions

View File

@ -76,6 +76,7 @@ export function InheritDefinitionFeature(definition: DirectiveDef<any>| Componen
superHostBindings(directiveIndex, elementIndex);
prevHostBindings(directiveIndex, elementIndex);
};
(definition as any).hostVars += superDef.hostVars;
} else {
definition.hostBindings = superHostBindings;
}