fix(ivy): support multiple exportAs (#27996)

Allows for multiple, comma-separated `exportAs` names, similarly to `ViewEngine`.

These changes fix FW-708.

PR Close #27996
This commit is contained in:
Kristiyan Kostadinov
2019-01-10 22:24:32 +01:00
committed by Andrew Kushnir
parent b78351cc7e
commit 9277142d54
14 changed files with 107 additions and 57 deletions

View File

@ -151,7 +151,7 @@ export function defineComponent<T>(componentDefinition: {
*
* See: {@link Directive.exportAs}
*/
exportAs?: string;
exportAs?: string[];
/**
* Template function use for rendering DOM.
@ -605,7 +605,7 @@ export const defineDirective = defineComponent as any as<T>(directiveDefinition:
*
* See: {@link Directive.exportAs}
*/
exportAs?: string;
exportAs?: string[];
}) => never;
/**