@@ -9,8 +9,10 @@ import {
9
9
Type ,
10
10
NgModule ,
11
11
} from '@angular/core' ;
12
+ import { CommonModule } from '@angular/common' ;
12
13
import { MD_RIPPLE_DIRECTIVES } from '@angular2-material/core/core' ;
13
14
import { BooleanFieldValue } from '@angular2-material/core/annotations/field-value' ;
15
+ import { MdRippleModule } from '../../core/ripple/ripple' ;
14
16
15
17
// TODO(jelbourn): Make the `isMouseDown` stuff done with one global listener.
16
18
// 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
29
31
} ,
30
32
templateUrl : 'button.html' ,
31
33
styleUrls : [ 'button.css' ] ,
32
- directives : [ MD_RIPPLE_DIRECTIVES ] ,
33
34
encapsulation : ViewEncapsulation . None ,
34
35
changeDetection : ChangeDetectionStrategy . OnPush ,
35
36
} )
@@ -118,7 +119,6 @@ export class MdButton {
118
119
} ,
119
120
templateUrl : 'button.html' ,
120
121
styleUrls : [ 'button.css' ] ,
121
- directives : [ MD_RIPPLE_DIRECTIVES ] ,
122
122
encapsulation : ViewEncapsulation . None
123
123
} )
124
124
export class MdAnchor extends MdButton {
@@ -162,6 +162,7 @@ export const MD_BUTTON_DIRECTIVES: Type[] = [MdButton, MdAnchor];
162
162
163
163
164
164
@NgModule ( {
165
+ imports : [ CommonModule , MdRippleModule ] ,
165
166
exports : MD_BUTTON_DIRECTIVES ,
166
167
declarations : MD_BUTTON_DIRECTIVES ,
167
168
} )
0 commit comments