mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
23 lines
497 B
TypeScript
23 lines
497 B
TypeScript
import {ElementRef, Directive, onDestroy} from 'angular2/angular2';
|
|
|
|
import {IonicConfig} from '../../config/config';
|
|
import {MaterialRippleEffect} from '../material/ripple';
|
|
|
|
@Directive({
|
|
selector: 'button,[button]',
|
|
lifecycle: [onDestroy]
|
|
})
|
|
export class MaterialButton {
|
|
constructor(elementRef: ElementRef, config: IonicConfig) {
|
|
this.elementRef = elementRef;
|
|
|
|
if(config.setting('mdRipple')) {
|
|
this.ripple = new MaterialRippleEffect(this);
|
|
}
|
|
}
|
|
|
|
onDestroy() {
|
|
|
|
}
|
|
}
|