UNPKG

ngx-soundmanager2

Version:
53 lines 1.85 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ import { Directive, HostListener, Input } from '@angular/core'; import { MusicPlayerService } from './music-player.service'; export class RemoveFromPlaylistDirective { /** * @param {?} _musicPlayerService */ constructor(_musicPlayerService) { this._musicPlayerService = _musicPlayerService; } /** * @return {?} */ onClick() { console.log('remove:', this.index); this._musicPlayerService.removeSong(this.song.id, this.index); } } RemoveFromPlaylistDirective.decorators = [ { type: Directive, args: [{ selector: '[removeFromPlaylist]' },] } ]; /** @nocollapse */ RemoveFromPlaylistDirective.ctorParameters = () => [ { type: MusicPlayerService, }, ]; RemoveFromPlaylistDirective.propDecorators = { "song": [{ type: Input },], "index": [{ type: Input },], "onClick": [{ type: HostListener, args: ['click', ['$event'],] },], }; function RemoveFromPlaylistDirective_tsickle_Closure_declarations() { /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */ RemoveFromPlaylistDirective.decorators; /** * @nocollapse * @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>} */ RemoveFromPlaylistDirective.ctorParameters; /** @type {!Object<string,!Array<{type: !Function, args: (undefined|!Array<?>)}>>} */ RemoveFromPlaylistDirective.propDecorators; /** @type {?} */ RemoveFromPlaylistDirective.prototype.song; /** @type {?} */ RemoveFromPlaylistDirective.prototype.index; /** @type {?} */ RemoveFromPlaylistDirective.prototype._musicPlayerService; } //# sourceMappingURL=remove-from-playlist.directive.js.map