UNPKG

@nbxx/nb-input

Version:
31 lines 956 B
import { Component, EventEmitter, Output } from "@angular/core"; import { NbSortingService } from "./nb-sorting.service"; export class NbSortingComponent { constructor(sortingService) { this.sortingService = sortingService; this.onSorted = new EventEmitter(); this.subscription = this.sortingService.subscribe(ch => this.onSorted.emit(ch)); } ngOnDestroy() { this.subscription.unsubscribe(); } } NbSortingComponent.decorators = [ { type: Component, args: [{ selector: '[nb-sorting]', providers: [NbSortingService], template: ` <ng-content></ng-content> ` },] }, ]; /** @nocollapse */ NbSortingComponent.ctorParameters = () => [ { type: NbSortingService } ]; NbSortingComponent.propDecorators = { onSorted: [{ type: Output }] }; export class SortInfo { } //# sourceMappingURL=nb-sorting.component.js.map