ngx-bootstrap
Version:
Native Angular Bootstrap Components
41 lines • 1.92 kB
JavaScript
import { Component, HostBinding, Input } from '@angular/core';
import { CarouselComponent } from './carousel.component';
var SlideComponent = /** @class */ (function () {
function SlideComponent(carousel) {
/** Wraps element by appropriate CSS classes */
this.addClass = true;
this.carousel = carousel;
}
/** Fires changes in container collection after adding a new slide instance */
/** Fires changes in container collection after adding a new slide instance */
SlideComponent.prototype.ngOnInit = /** Fires changes in container collection after adding a new slide instance */
function () {
this.carousel.addSlide(this);
};
/** Fires changes in container collection after removing of this slide instance */
/** Fires changes in container collection after removing of this slide instance */
SlideComponent.prototype.ngOnDestroy = /** Fires changes in container collection after removing of this slide instance */
function () {
this.carousel.removeSlide(this);
};
SlideComponent.decorators = [
{ type: Component, args: [{
selector: 'slide',
template: "\n <div [class.active]=\"active\" class=\"item\">\n <ng-content></ng-content>\n </div>\n ",
host: {
'[attr.aria-hidden]': '!active'
}
},] },
];
/** @nocollapse */
SlideComponent.ctorParameters = function () { return [
{ type: CarouselComponent, },
]; };
SlideComponent.propDecorators = {
"active": [{ type: HostBinding, args: ['class.active',] }, { type: Input },],
"addClass": [{ type: HostBinding, args: ['class.item',] }, { type: HostBinding, args: ['class.carousel-item',] },],
};
return SlideComponent;
}());
export { SlideComponent };
//# sourceMappingURL=slide.component.js.map