@@ -10,7 +10,7 @@ import {
1010 ModuleWithProviders ,
1111} from '@angular/core' ;
1212import { CommonModule } from '@angular/common' ;
13- import { MdRippleModule , coerceBooleanProperty , DefaultStyleCompatibilityModeModule } from '../core' ;
13+ import { MdRippleModule , coerceBooleanProperty , CompatibilityModule } from '../core' ;
1414
1515
1616// TODO(jelbourn): Make the `isMouseDown` stuff done with one global listener.
@@ -21,8 +21,10 @@ import {MdRippleModule, coerceBooleanProperty, DefaultStyleCompatibilityModeModu
2121 */
2222@Component ( {
2323 moduleId : module . id ,
24- selector : 'button[md-button], button[md-raised-button], button[md-icon-button], ' +
25- 'button[md-fab], button[md-mini-fab]' ,
24+ selector : 'button[md-button], button[md-raised-button], button[md-icon-button],' +
25+ 'button[md-fab], button[md-mini-fab],' +
26+ 'button[mat-button], button[mat-raised-button], button[mat-icon-button],' +
27+ 'button[mat-fab], button[mat-mini-fab]' ,
2628 host : {
2729 '[disabled]' : 'disabled' ,
2830 '[class.md-button-focus]' : '_isKeyboardFocused' ,
@@ -120,7 +122,8 @@ export class MdButton {
120122 */
121123@Component ( {
122124 moduleId : module . id ,
123- selector : 'a[md-button], a[md-raised-button], a[md-icon-button], a[md-fab], a[md-mini-fab]' ,
125+ selector : `a[md-button], a[md-raised-button], a[md-icon-button], a[md-fab], a[md-mini-fab],
126+ a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab]` ,
124127 inputs : [ 'color' , 'disabled' , 'disableRipple' ] ,
125128 host : {
126129 '[attr.disabled]' : 'disabled' ,
@@ -161,8 +164,8 @@ export class MdAnchor extends MdButton {
161164
162165
163166@NgModule ( {
164- imports : [ CommonModule , MdRippleModule , DefaultStyleCompatibilityModeModule ] ,
165- exports : [ MdButton , MdAnchor , DefaultStyleCompatibilityModeModule ] ,
167+ imports : [ CommonModule , MdRippleModule , CompatibilityModule ] ,
168+ exports : [ MdButton , MdAnchor , CompatibilityModule ] ,
166169 declarations : [ MdButton , MdAnchor ] ,
167170} )
168171export class MdButtonModule {
0 commit comments