UNPKG

ngx-soundmanager2

Version:
46 lines 1.46 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ import { Directive, HostListener } from '@angular/core'; import { MusicPlayerService } from './music-player.service'; export class StopMusicDirective { /** * @param {?} _musicPlayerService */ constructor(_musicPlayerService) { this._musicPlayerService = _musicPlayerService; } /** * @return {?} */ onClick() { this._musicPlayerService.stop(); } } StopMusicDirective.decorators = [ { type: Directive, args: [{ selector: '[stopMusic]' },] } ]; /** @nocollapse */ StopMusicDirective.ctorParameters = () => [ { type: MusicPlayerService, }, ]; StopMusicDirective.propDecorators = { "onClick": [{ type: HostListener, args: ['click', ['$event'],] },], }; function StopMusicDirective_tsickle_Closure_declarations() { /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */ StopMusicDirective.decorators; /** * @nocollapse * @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>} */ StopMusicDirective.ctorParameters; /** @type {!Object<string,!Array<{type: !Function, args: (undefined|!Array<?>)}>>} */ StopMusicDirective.propDecorators; /** @type {?} */ StopMusicDirective.prototype._musicPlayerService; } //# sourceMappingURL=stop-music.directive.js.map