Skip to content

Commit

Permalink
fix(chips): add exportAs for chip and chip list
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 angular#6070.
  • Loading branch information
crisbeto committed Jul 27, 2017
1 parent 3cb3945 commit 23f5b81
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 23f5b81

Please sign in to comment.