/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes} checked by tsc
 */
import { Component, ElementRef, HostListener, HostBinding, Input } from '@angular/core';
import { ScrollTabService } from '../scroll-tab/scroll-tab.service';
export class ScrollTabButtonComponent {
    /**
     * @param {?} elementRef
     * @param {?} scrollTabService
     */
    constructor(elementRef, scrollTabService) {
        this.elementRef = elementRef;
        this.scrollTabService = scrollTabService;
        this.selected = false;
    }
    /**
     * @return {?}
     */
    click() {
        this.scrollTabService.selected(this);
    }
}
ScrollTabButtonComponent.decorators = [
    { type: Component, args: [{
                selector: 'ui-scroll-tab-button',
                template: `<ng-content></ng-content>`
            },] },
];
/** @nocollapse */
ScrollTabButtonComponent.ctorParameters = () => [
    { type: ElementRef, },
    { type: ScrollTabService, },
];
ScrollTabButtonComponent.propDecorators = {
    "selected": [{ type: Input }, { type: HostBinding, args: ['class.ui-selected',] },],
    "click": [{ type: HostListener, args: ['click',] },],
};
function ScrollTabButtonComponent_tsickle_Closure_declarations() {
    /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
    ScrollTabButtonComponent.decorators;
    /**
     * @nocollapse
     * @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
     */
    ScrollTabButtonComponent.ctorParameters;
    /** @type {!Object<string,!Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
    ScrollTabButtonComponent.propDecorators;
    /** @type {?} */
    ScrollTabButtonComponent.prototype.selected;
    /** @type {?} */
    ScrollTabButtonComponent.prototype.elementRef;
    /** @type {?} */
    ScrollTabButtonComponent.prototype.scrollTabService;
}

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsLXRhYi1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHRhbmJvL3VpLW5hdGl2ZS8iLCJzb3VyY2VzIjpbImxpYi9zY3JvbGwvc2Nyb2xsLXRhYi1idXR0b24vc2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