UNPKG

ngx-bootstrap

Version:
36 lines 1.52 kB
import { Injectable, NgZone, ComponentFactoryResolver, Injector, ApplicationRef } from '@angular/core'; import { ComponentLoader } from './component-loader.class'; import { PositioningService } from '../positioning'; var ComponentLoaderFactory = (function () { function ComponentLoaderFactory(_componentFactoryResolver, _ngZone, _injector, _posService, _applicationRef) { this._componentFactoryResolver = _componentFactoryResolver; this._ngZone = _ngZone; this._injector = _injector; this._posService = _posService; this._applicationRef = _applicationRef; } /** * * @param _elementRef * @param _viewContainerRef * @param _renderer * @returns {ComponentLoader} */ ComponentLoaderFactory.prototype.createLoader = function (_elementRef, _viewContainerRef, _renderer) { return new ComponentLoader(_viewContainerRef, _renderer, _elementRef, this._injector, this._componentFactoryResolver, this._ngZone, this._applicationRef, this._posService); }; ComponentLoaderFactory.decorators = [ { type: Injectable }, ]; /** @nocollapse */ ComponentLoaderFactory.ctorParameters = function () { return [ { type: ComponentFactoryResolver, }, { type: NgZone, }, { type: Injector, }, { type: PositioningService, }, { type: ApplicationRef, }, ]; }; return ComponentLoaderFactory; }()); export { ComponentLoaderFactory }; //# sourceMappingURL=component-loader.factory.js.map