Skip to content

Commit

Permalink
fix(chips): add exportAs for chip and chip list (#6084)
Browse files Browse the repository at this point in the history
Adds `exportAs` declarations to the `MdChip` and `MdChipList` directives to make them a little more convenient to use in templates.

Fixes #6070.
  • Loading branch information
crisbeto authored and andrewseguin committed Jul 28, 2017
1 parent 22ce1da commit e7da1e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/chips/chip-list.ts
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions src/lib/chips/chip.ts
Expand Up @@ -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',
Expand Down

0 comments on commit e7da1e4

Please sign in to comment.