@@ -9,8 +9,10 @@ import {
99 Type ,
1010 NgModule ,
1111} from '@angular/core' ;
12+ import { CommonModule } from '@angular/common' ;
1213import { MD_RIPPLE_DIRECTIVES } from '@angular2-material/core/core' ;
1314import { BooleanFieldValue } from '@angular2-material/core/annotations/field-value' ;
15+ import { MdRippleModule } from '../../core/ripple/ripple' ;
1416
1517// TODO(jelbourn): Make the `isMouseDown` stuff done with one global listener.
1618// TODO(kara): Convert attribute selectors to classes when attr maps become available
@@ -29,7 +31,6 @@ import {BooleanFieldValue} from '@angular2-material/core/annotations/field-value
2931 } ,
3032 templateUrl : 'button.html' ,
3133 styleUrls : [ 'button.css' ] ,
32- directives : [ MD_RIPPLE_DIRECTIVES ] ,
3334 encapsulation : ViewEncapsulation . None ,
3435 changeDetection : ChangeDetectionStrategy . OnPush ,
3536} )
@@ -118,7 +119,6 @@ export class MdButton {
118119 } ,
119120 templateUrl : 'button.html' ,
120121 styleUrls : [ 'button.css' ] ,
121- directives : [ MD_RIPPLE_DIRECTIVES ] ,
122122 encapsulation : ViewEncapsulation . None
123123} )
124124export class MdAnchor extends MdButton {
@@ -162,6 +162,7 @@ export const MD_BUTTON_DIRECTIVES: Type[] = [MdButton, MdAnchor];
162162
163163
164164@NgModule ( {
165+ imports : [ CommonModule , MdRippleModule ] ,
165166 exports : MD_BUTTON_DIRECTIVES ,
166167 declarations : MD_BUTTON_DIRECTIVES ,
167168} )
0 commit comments