Skip to content

Commit

Permalink
fix(chip,stepper): compile cleanly with "fullTemplateTypeCheck" (#8889
Browse files Browse the repository at this point in the history
)

Using chip or step-header in an application will cause errors
if the application enables `"fullTemplateTypeCheck"`.
  • Loading branch information
chuckjaz authored and andrewseguin committed Dec 13, 2017
1 parent 3728555 commit 50967b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/lib/chips/chip-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
/** The chip input to add more chips */
protected _chipInput: MatChipInput;

/** The aria-describedby attribute on the chip list for improved a11y. */
protected _ariaDescribedby: string;

/** Id of the chip list */
protected _id: string;

Expand All @@ -156,7 +153,10 @@ export class MatChipList extends _MatChipListMixinBase implements MatFormFieldCo
/** Placeholder for the chip list. Alternatively, placeholder can be set on MatChipInput */
protected _placeholder: string;

/** Tab index for the chip list. */
/** The aria-describedby attribute on the chip list for improved a11y. */
_ariaDescribedby: string;

/** Tab index for the chip list. */
_tabIndex = 0;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/lib/stepper/step-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[class.mat-step-label-active]="active"
[class.mat-step-label-selected]="selected">
<!-- If there is a label template, use it. -->
<ng-container *ngIf="_templateLabel()" [ngTemplateOutlet]="label.template">
<ng-container *ngIf="_templateLabel()" [ngTemplateOutlet]="_templateLabel()!.template">
</ng-container>
<!-- It there is no label template, fall back to the text label. -->
<div class="mat-step-text-label" *ngIf="_stringLabel()">{{label}}</div>
Expand Down

0 comments on commit 50967b6

Please # to comment.