mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Andrew Seguin
parent
22ce1da37e
commit
e7da1e474e
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user