feat(compiler): allow multiple exportAs names

This change allows users to specify multiple exportAs names for a
directive by giving a comma-delimited list inside the string.

The primary motivation for this change is to allow these names to be
changed in a backwards compatible way.
This commit is contained in:
Jeremy Elbourn
2017-08-15 16:34:47 -07:00
committed by Hans
parent 0d45828460
commit 3a500981ef
4 changed files with 81 additions and 2 deletions

View File

@ -54,7 +54,8 @@ export interface DirectiveDecorator {
*
* **Metadata Properties:**
*
* * **exportAs** - name under which the component instance is exported in a template
* * **exportAs** - name under which the component instance is exported in a template. Can be
* given a single name or a comma-delimited list of names.
* * **host** - map of class property to host element bindings for events, properties and
* attributes
* * **inputs** - list of class property names to data-bind as component inputs