Skip to content

Commit e7da1e4

Browse files
crisbetoandrewseguin
authored andcommitted
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.
1 parent 22ce1da commit e7da1e4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/lib/chips/chip-list.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import {coerceBooleanProperty} from '@angular/cdk/coercion';
4141
moduleId: module.id,
4242
selector: 'md-chip-list, mat-chip-list',
4343
template: `<div class="mat-chip-list-wrapper"><ng-content></ng-content></div>`,
44+
exportAs: 'mdChipList',
4445
host: {
4546
'[attr.tabindex]': '_tabIndex',
4647
'role': 'listbox',

src/lib/chips/chip.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export class MdBasicChip { }
5353
selector: `md-basic-chip, [md-basic-chip], md-chip, [md-chip],
5454
mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]`,
5555
inputs: ['color', 'disabled'],
56+
exportAs: 'mdChip',
5657
host: {
5758
'class': 'mat-chip',
5859
'tabindex': '-1',

0 commit comments

Comments
 (0)