mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
18 lines
335 B
TypeScript
18 lines
335 B
TypeScript
import {Directive, ElementRef} from 'angular2/angular2';
|
|
|
|
@Directive({
|
|
selector: '[md-ripple]',
|
|
host: {
|
|
'(click)': 'elementClicked($event)'
|
|
}
|
|
})
|
|
export class MaterialRipple {
|
|
constructor(elementRef: ElementRef) {
|
|
this.elementRef = elementRef;
|
|
console.log('Ripple', elementRef);
|
|
}
|
|
|
|
elementClicked(event) {
|
|
}
|
|
}
|