fix(chips): add exportAs for chip and chip list (#6084)

Adds `exportAs` declarations to the `MdChip` and `MdChipList` directives to make them a little more convenient to use in templates.

Fixes #6070.
This commit is contained in:
Kristiyan Kostadinov
2017-07-28 17:47:23 +03:00
committed by Andrew Seguin
parent 22ce1da37e
commit e7da1e474e
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -41,6 +41,7 @@ import {coerceBooleanProperty} from '@angular/cdk/coercion';
moduleId: module.id,
selector: 'md-chip-list, mat-chip-list',
template: `<div class="mat-chip-list-wrapper"><ng-content></ng-content></div>`,
exportAs: 'mdChipList',
host: {
'[attr.tabindex]': '_tabIndex',
'role': 'listbox',
+1
View File
@@ -53,6 +53,7 @@ export class MdBasicChip { }
selector: `md-basic-chip, [md-basic-chip], md-chip, [md-chip],
mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]`,
inputs: ['color', 'disabled'],
exportAs: 'mdChip',
host: {
'class': 'mat-chip',
'tabindex': '-1',