chore: better color usage for chip demo (#7254)

* Improves the example for the chips that shows how the color can be set for chips.
* Fixes a typo in the chips readme

References #7243
This commit is contained in:
Paul Gschwendtner
2017-09-29 22:23:22 +02:00
committed by Andrew Seguin
parent 85ce16d863
commit d858ad93ec
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ between the two components. This directive adds chip-specific behaviors to the i
within `<mat-form-field>` for adding and removing chips. The `<input>` with `MatChipInput` can
be placed inside or outside the chip-list element.
An exmaple of chip input placed inside the chip-list element.
An example of chip input placed inside the chip-list element.
<!-- example(chips-input) -->
An example of chip input placed outside the chip-list element.
@@ -1,7 +1,5 @@
<mat-chip-list class="mat-chip-list-stacked">
<mat-chip *ngFor="let chipColor of availableColors"
selected="true"
color="{{chipColor.color}}">
{{chipColor.name}}
<mat-chip *ngFor="let chip of availableColors" selected="true" [color]="chip.color">
{{chip.name}}
</mat-chip>
</mat-chip-list>