import { Component, Input, ViewEncapsulation } from '@angular/core'; import { Config } from '../../config/config'; import { InfiniteScroll } from './infinite-scroll'; /** * @hidden */ var InfiniteScrollContent = (function () { function InfiniteScrollContent(inf, _config) { this.inf = inf; this._config = _config; } /** * @hidden */ InfiniteScrollContent.prototype.ngOnInit = function () { if (!this.loadingSpinner) { this.loadingSpinner = this._config.get('infiniteLoadingSpinner', this._config.get('spinner', 'ios')); } }; InfiniteScrollContent.decorators = [ { type: Component, args: [{ selector: 'ion-infinite-scroll-content', template: '
' + '
' + '' + '
' + '
' + '
', host: { '[attr.state]': 'inf.state' }, encapsulation: ViewEncapsulation.None, },] }, ]; /** @nocollapse */ InfiniteScrollContent.ctorParameters = function () { return [ { type: InfiniteScroll, }, { type: Config, }, ]; }; InfiniteScrollContent.propDecorators = { 'loadingSpinner': [{ type: Input },], 'loadingText': [{ type: Input },], }; return InfiniteScrollContent; }()); export { InfiniteScrollContent }; //# sourceMappingURL=infinite-scroll-content.js.map