Skip to content

Commit

Permalink
compat(stepper): error in compatibility mode (#6989)
Browse files Browse the repository at this point in the history
Fixes an error thrown by the stepper in compatibility mode.

Fixes #6988.
  • Loading branch information
crisbeto authored and mmalerba committed Sep 12, 2017
1 parent 2cefe67 commit 2239e7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/stepper/step-header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import {Component, Input, ViewEncapsulation} from '@angular/core';
import {coerceBooleanProperty, coerceNumberProperty} from '@angular/cdk/coercion';
import {MdStepLabel} from './step-label';
import {MATERIAL_COMPATIBILITY_MODE} from '../core/compatibility/compatibility';

@Component({
moduleId: module.id,
Expand All @@ -19,7 +20,8 @@ import {MdStepLabel} from './step-label';
'class': 'mat-step-header',
'role': 'tab',
},
encapsulation: ViewEncapsulation.None
encapsulation: ViewEncapsulation.None,
providers: [{provide: MATERIAL_COMPATIBILITY_MODE, useValue: false}],
})
export class MdStepHeader {
/** Icon for the given step. */
Expand Down

0 comments on commit 2239e7d

Please sign in to comment.