Skip to content

Commit 7fe1f70

Browse files
committed
chore: rebase button ripples on ngmodules
1 parent 32aa461 commit 7fe1f70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/button/button.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ import {
99
Type,
1010
NgModule,
1111
} from '@angular/core';
12+
import {CommonModule} from '@angular/common';
1213
import {MD_RIPPLE_DIRECTIVES} from '@angular2-material/core/core';
1314
import {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
})
124124
export 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

Comments
 (0)