mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
compat(stepper): error in compatibility mode (#6989)
Fixes an error thrown by the stepper in compatibility mode. Fixes #6988.
This commit is contained in:
committed by
mmalerba
parent
2cefe67c77
commit
2239e7daf0
@@ -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,
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user