UNPKG

ng2-bootstrap

Version:
34 lines (33 loc) 1.32 kB
"use strict"; var core_1 = require('@angular/core'); var carousel_component_1 = require('./carousel.component'); var SlideComponent = (function () { function SlideComponent(carousel) { this.addClass = true; this.carousel = carousel; } SlideComponent.prototype.ngOnInit = function () { this.carousel.addSlide(this); }; SlideComponent.prototype.ngOnDestroy = function () { this.carousel.removeSlide(this); }; SlideComponent.decorators = [ { type: core_1.Component, args: [{ selector: 'slide', template: "\n <div [class.active]=\"active\" class=\"item\">\n <ng-content></ng-content>\n </div>\n " },] }, ]; /** @nocollapse */ SlideComponent.ctorParameters = [ { type: carousel_component_1.CarouselComponent, }, ]; SlideComponent.propDecorators = { 'index': [{ type: core_1.Input },], 'direction': [{ type: core_1.Input },], 'active': [{ type: core_1.HostBinding, args: ['class.active',] }, { type: core_1.Input },], 'addClass': [{ type: core_1.HostBinding, args: ['class.item',] }, { type: core_1.HostBinding, args: ['class.carousel-item',] },], }; return SlideComponent; }()); exports.SlideComponent = SlideComponent;