From 7fe1f70d3837e37848bbad2f4cd57f8af1504217 Mon Sep 17 00:00:00 2001 From: Jeremy Elbourn Date: Mon, 8 Aug 2016 12:06:03 -0700 Subject: [PATCH] chore: rebase button ripples on ngmodules --- src/components/button/button.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/button/button.ts b/src/components/button/button.ts index c1cbcf46378..d1af6cdcbfd 100644 --- a/src/components/button/button.ts +++ b/src/components/button/button.ts @@ -9,8 +9,10 @@ import { Type, NgModule, } from '@angular/core'; +import {CommonModule} from '@angular/common'; import {MD_RIPPLE_DIRECTIVES} from '@angular2-material/core/core'; import {BooleanFieldValue} from '@angular2-material/core/annotations/field-value'; +import {MdRippleModule} from '../../core/ripple/ripple'; // TODO(jelbourn): Make the `isMouseDown` stuff done with one global listener. // 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 }, templateUrl: 'button.html', styleUrls: ['button.css'], - directives: [MD_RIPPLE_DIRECTIVES], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, }) @@ -118,7 +119,6 @@ export class MdButton { }, templateUrl: 'button.html', styleUrls: ['button.css'], - directives: [MD_RIPPLE_DIRECTIVES], encapsulation: ViewEncapsulation.None }) export class MdAnchor extends MdButton { @@ -162,6 +162,7 @@ export const MD_BUTTON_DIRECTIVES: Type[] = [MdButton, MdAnchor]; @NgModule({ + imports: [CommonModule, MdRippleModule], exports: MD_BUTTON_DIRECTIVES, declarations: MD_BUTTON_DIRECTIVES, })