@angular-extensions/elements
Advanced tools
Comparing version 8.11.0 to 8.11.1
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"ɵa":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":40},"arguments":["LAZY_ELEMENT_CONFIGS"]},"ɵb":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":45},"arguments":["LAZY_ELEMENT_ROOT_OPTIONS"]},"ɵc":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":13,"character":43},"arguments":["LAZY_ELEMENT_ROOT_GUARD"]},"LAZY_ELEMENTS_REGISTRY":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":17,"character":42},"arguments":["Lazu elements registry",{"__symbolic":"error","message":"Lambda not supported","line":21,"character":13,"module":"./lib/lazy-elements/lazy-elements.tokens"}]},"LazyElementsRegistry":{"__symbolic":"interface"},"createLazyElementRootGuard":{"__symbolic":"function"},"LazyElementsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":36,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵg"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":38,"character":12}],"exports":[{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵg"}],"providers":[]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":92,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":93,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵa"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":95,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":96,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵc"}]}]],"parameters":[{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"ɵe"}]}]},{"__symbolic":"reference","name":"any"}]}]},"statics":{"forRoot":{"__symbolic":"function","parameters":["options"],"value":{"ngModule":{"__symbolic":"reference","name":"LazyElementsModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ɵa"},"useValue":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"reference","name":"options"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"elementConfigs"}},"thenExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"elementConfigs"},"elseExpression":[]},"multi":true},{"provide":{"__symbolic":"reference","name":"ɵb"},"useValue":{"__symbolic":"if","condition":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"rootOptions"},"thenExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"rootOptions"},"elseExpression":{}}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"ANALYZE_FOR_ENTRY_COMPONENTS","line":58,"character":19},"useValue":{"__symbolic":"reference","name":"options"},"multi":true},{"provide":{"__symbolic":"reference","name":"ɵc"},"useFactory":{"__symbolic":"reference","name":"createLazyElementRootGuard"},"deps":[[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":65,"character":44}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":65,"character":60}}]]}]}},"forFeature":{"__symbolic":"function","parameters":["options"],"value":{"ngModule":{"__symbolic":"reference","name":"LazyElementsModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ɵa"},"useValue":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"reference","name":"options"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"elementConfigs"}},"thenExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"elementConfigs"},"elseExpression":[]},"multi":true},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"ANALYZE_FOR_ENTRY_COMPONENTS","line":82,"character":19},"useValue":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"reference","name":"options"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"elementConfigs"}},"multi":true}]}}}},"LazyElementModuleOptions":{"__symbolic":"interface"},"LazyElementModuleRootOptions":{"__symbolic":"interface"},"LazyElementRootOptions":{"__symbolic":"interface"},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":16,"character":1},"arguments":[{"selector":"[axLazyElement]"}]}],"members":{"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3},"arguments":["axLazyElement"]}]}],"loadingTemplateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3},"arguments":["axLazyElementLoadingTemplate"]}]}],"errorTemplateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3},"arguments":["axLazyElementErrorTemplate"]}]}],"isModule":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3},"arguments":["axLazyElementModule"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":26,"character":17},{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":29,"character":17}]}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"interface"},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":20,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":27,"character":5},"arguments":[{"__symbolic":"reference","name":"LAZY_ELEMENTS_REGISTRY"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":28,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":29,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}]],"parameters":[{"__symbolic":"reference","name":"LazyElementsRegistry"},{"__symbolic":"reference","name":"LazyElementRootOptions"}]}],"addConfigs":[{"__symbolic":"method"}],"getElementConfig":[{"__symbolic":"method"}],"preload":[{"__symbolic":"method"}],"loadElement":[{"__symbolic":"method"}],"addElement":[{"__symbolic":"method"}],"hasElement":[{"__symbolic":"method"}],"stripUrlProtocol":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":16,"character":1},"arguments":[{"selector":"[axLazyElementDynamic]"}]}],"members":{"tag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3},"arguments":["axLazyElementDynamic"]}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3},"arguments":["axLazyElementDynamicUrl"]}]}],"loadingTemplateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3},"arguments":["axLazyElementDynamicLoadingTemplate"]}]}],"errorTemplateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3},"arguments":["axLazyElementDynamicErrorTemplate"]}]}],"isModule":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3},"arguments":["axLazyElementDynamicModule"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":31,"character":17},{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":34,"character":17}]}],"ngOnInit":[{"__symbolic":"method"}]}}},"origins":{"ɵa":"./lib/lazy-elements/lazy-elements.tokens","ɵb":"./lib/lazy-elements/lazy-elements.tokens","ɵc":"./lib/lazy-elements/lazy-elements.tokens","LAZY_ELEMENTS_REGISTRY":"./lib/lazy-elements/lazy-elements.tokens","LazyElementsRegistry":"./lib/lazy-elements/lazy-elements.tokens","createLazyElementRootGuard":"./lib/lazy-elements/lazy-elements.module","LazyElementsModule":"./lib/lazy-elements/lazy-elements.module","LazyElementModuleOptions":"./lib/lazy-elements/lazy-elements.module","LazyElementModuleRootOptions":"./lib/lazy-elements/lazy-elements.module","LazyElementRootOptions":"./lib/lazy-elements/lazy-elements.module","ɵd":"./lib/lazy-elements/lazy-element/lazy-element.directive","ɵe":"./lib/lazy-elements/lazy-elements-loader.service","ɵf":"./lib/lazy-elements/lazy-elements-loader.service","ɵg":"./lib/lazy-elements/lazy-element-dynamic/lazy-element-dynamic.directive"},"importAs":"@angular-extensions/elements"} | ||
{"__symbolic":"module","version":4,"metadata":{"ɵa":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":40},"arguments":["LAZY_ELEMENT_CONFIGS"]},"ɵb":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":45},"arguments":["LAZY_ELEMENT_ROOT_OPTIONS"]},"ɵc":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":13,"character":43},"arguments":["LAZY_ELEMENT_ROOT_GUARD"]},"LAZY_ELEMENTS_REGISTRY":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":17,"character":42},"arguments":["Lazu elements registry",{"__symbolic":"error","message":"Lambda not supported","line":21,"character":13,"module":"./lib/lazy-elements/lazy-elements.tokens"}]},"LazyElementsRegistry":{"__symbolic":"interface"},"createLazyElementRootGuard":{"__symbolic":"function"},"LazyElementsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":36,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵg"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":38,"character":12}],"exports":[{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵg"}],"providers":[]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":92,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":93,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵa"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":95,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":96,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵc"}]}]],"parameters":[{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"ɵe"}]}]},{"__symbolic":"reference","name":"any"}]}]},"statics":{"forRoot":{"__symbolic":"function","parameters":["options"],"value":{"ngModule":{"__symbolic":"reference","name":"LazyElementsModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ɵa"},"useValue":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"reference","name":"options"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"elementConfigs"}},"thenExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"elementConfigs"},"elseExpression":[]},"multi":true},{"provide":{"__symbolic":"reference","name":"ɵb"},"useValue":{"__symbolic":"if","condition":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"rootOptions"},"thenExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"rootOptions"},"elseExpression":{}}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"ANALYZE_FOR_ENTRY_COMPONENTS","line":58,"character":19},"useValue":{"__symbolic":"reference","name":"options"},"multi":true},{"provide":{"__symbolic":"reference","name":"ɵc"},"useFactory":{"__symbolic":"reference","name":"createLazyElementRootGuard"},"deps":[[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":65,"character":44}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":65,"character":60}}]]}]}},"forFeature":{"__symbolic":"function","parameters":["options"],"value":{"ngModule":{"__symbolic":"reference","name":"LazyElementsModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ɵa"},"useValue":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"reference","name":"options"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"elementConfigs"}},"thenExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"elementConfigs"},"elseExpression":[]},"multi":true},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"ANALYZE_FOR_ENTRY_COMPONENTS","line":82,"character":19},"useValue":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"reference","name":"options"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"elementConfigs"}},"multi":true}]}}}},"LazyElementModuleOptions":{"__symbolic":"interface"},"LazyElementModuleRootOptions":{"__symbolic":"interface"},"LazyElementRootOptions":{"__symbolic":"interface"},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":17,"character":1},"arguments":[{"selector":"[axLazyElement]"}]}],"members":{"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3},"arguments":["axLazyElement"]}]}],"loadingTemplateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3},"arguments":["axLazyElementLoadingTemplate"]}]}],"errorTemplateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3},"arguments":["axLazyElementErrorTemplate"]}]}],"isModule":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3},"arguments":["axLazyElementModule"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":27,"character":17},{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":30,"character":17},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":31,"character":17}]}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"interface"},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":20,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":27,"character":5},"arguments":[{"__symbolic":"reference","name":"LAZY_ELEMENTS_REGISTRY"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":28,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":29,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}]],"parameters":[{"__symbolic":"reference","name":"LazyElementsRegistry"},{"__symbolic":"reference","name":"LazyElementRootOptions"}]}],"addConfigs":[{"__symbolic":"method"}],"getElementConfig":[{"__symbolic":"method"}],"preload":[{"__symbolic":"method"}],"loadElement":[{"__symbolic":"method"}],"addElement":[{"__symbolic":"method"}],"hasElement":[{"__symbolic":"method"}],"stripUrlProtocol":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":17,"character":1},"arguments":[{"selector":"[axLazyElementDynamic]"}]}],"members":{"tag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3},"arguments":["axLazyElementDynamic"]}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3},"arguments":["axLazyElementDynamicUrl"]}]}],"loadingTemplateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3},"arguments":["axLazyElementDynamicLoadingTemplate"]}]}],"errorTemplateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3},"arguments":["axLazyElementDynamicErrorTemplate"]}]}],"isModule":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3},"arguments":["axLazyElementDynamicModule"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":32,"character":17},{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":35,"character":17},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":36,"character":17}]}],"ngOnInit":[{"__symbolic":"method"}]}}},"origins":{"ɵa":"./lib/lazy-elements/lazy-elements.tokens","ɵb":"./lib/lazy-elements/lazy-elements.tokens","ɵc":"./lib/lazy-elements/lazy-elements.tokens","LAZY_ELEMENTS_REGISTRY":"./lib/lazy-elements/lazy-elements.tokens","LazyElementsRegistry":"./lib/lazy-elements/lazy-elements.tokens","createLazyElementRootGuard":"./lib/lazy-elements/lazy-elements.module","LazyElementsModule":"./lib/lazy-elements/lazy-elements.module","LazyElementModuleOptions":"./lib/lazy-elements/lazy-elements.module","LazyElementModuleRootOptions":"./lib/lazy-elements/lazy-elements.module","LazyElementRootOptions":"./lib/lazy-elements/lazy-elements.module","ɵd":"./lib/lazy-elements/lazy-element/lazy-element.directive","ɵe":"./lib/lazy-elements/lazy-elements-loader.service","ɵf":"./lib/lazy-elements/lazy-elements-loader.service","ɵg":"./lib/lazy-elements/lazy-element-dynamic/lazy-element-dynamic.directive"},"importAs":"@angular-extensions/elements"} |
@@ -228,3 +228,3 @@ (function (global, factory) { | ||
var LazyElementDirective = /** @class */ (function () { | ||
function LazyElementDirective(vcr, template, elementsLoaderService, cfr) { | ||
function LazyElementDirective(vcr, template, elementsLoaderService, cfr, cdr) { | ||
this.vcr = vcr; | ||
@@ -234,2 +234,3 @@ this.template = template; | ||
this.cfr = cfr; | ||
this.cdr = cdr; | ||
} | ||
@@ -273,2 +274,3 @@ /** | ||
_this.vcr.createEmbeddedView(_this.template); | ||
_this.cdr.markForCheck(); | ||
})) | ||
@@ -284,2 +286,3 @@ .catch((/** | ||
_this.vcr.createEmbeddedView(_this.errorTemplateRef); | ||
_this.cdr.markForCheck(); | ||
} | ||
@@ -290,2 +293,3 @@ else if (errorComponent) { | ||
_this.vcr.createComponent(factory); | ||
_this.cdr.markForCheck(); | ||
} | ||
@@ -307,3 +311,4 @@ else { | ||
{ type: LazyElementsLoaderService }, | ||
{ type: core.ComponentFactoryResolver } | ||
{ type: core.ComponentFactoryResolver }, | ||
{ type: core.ChangeDetectorRef } | ||
]; }; | ||
@@ -326,3 +331,3 @@ LazyElementDirective.propDecorators = { | ||
var LazyElementDynamicDirective = /** @class */ (function () { | ||
function LazyElementDynamicDirective(vcr, template, elementsLoaderService, cfr) { | ||
function LazyElementDynamicDirective(vcr, template, elementsLoaderService, cfr, cdr) { | ||
this.vcr = vcr; | ||
@@ -332,2 +337,3 @@ this.template = template; | ||
this.cfr = cfr; | ||
this.cdr = cdr; | ||
} | ||
@@ -376,2 +382,3 @@ /** | ||
_this.vcr.createEmbeddedView(_this.template); | ||
_this.cdr.markForCheck(); | ||
})) | ||
@@ -388,2 +395,3 @@ .catch((/** | ||
_this.vcr.createEmbeddedView(_this.errorTemplateRef); | ||
_this.cdr.markForCheck(); | ||
} | ||
@@ -394,2 +402,3 @@ else if (errorComponent) { | ||
_this.vcr.createComponent(factory); | ||
_this.cdr.markForCheck(); | ||
} | ||
@@ -411,3 +420,4 @@ else { | ||
{ type: LazyElementsLoaderService }, | ||
{ type: core.ComponentFactoryResolver } | ||
{ type: core.ComponentFactoryResolver }, | ||
{ type: core.ChangeDetectorRef } | ||
]; }; | ||
@@ -414,0 +424,0 @@ LazyElementDynamicDirective.propDecorators = { |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("@angular-extensions/elements",["exports","@angular/core","@angular/common"],t):t(((e=e||self)["angular-extensions"]=e["angular-extensions"]||{},e["angular-extensions"].elements={}),e.ng.core,e.ng.common)}(this,function(e,t,n){"use strict";var r=new t.InjectionToken("LAZY_ELEMENT_CONFIGS"),o=new t.InjectionToken("LAZY_ELEMENT_ROOT_OPTIONS"),a=new t.InjectionToken("LAZY_ELEMENT_ROOT_GUARD"),i=new t.InjectionToken("Lazu elements registry",{providedIn:"root",factory:function(){return new Map}}),l="@angular-extensions/elements",s=function(){function e(e,t){this.registry=e,this.options=t,this.configs=[],t||(this.options={})}return e.prototype.addConfigs=function(e){var t=this;e.forEach(function(e){t.getElementConfig(e.tag)?console.warn(l+" - ElementConfig for tag '"+e.tag+"' was previously added, it will not be added multiple times, continue..."):(t.configs.push(e),(e.preload!==undefined?e.preload:t.options.preload)&&t.loadElement(e.url,e.tag,e.isModule))})},e.prototype.getElementConfig=function(e){return this.configs.find(function(t){return t.tag===e})},e.prototype.preload=function(e){var t=this,n=this.configs;e&&(n=this.configs.filter(function(t){return e.includes(t.tag)})),n.forEach(function(e){return t.loadElement(e.url,e.tag,e.isModule)})},e.prototype.loadElement=function(e,t,n){var r=this.getElementConfig(t);if(!e){if(!r)throw new Error(l+" - url for <"+t+"> not found");e=r.url}if(n===undefined&&(n=r&&r.isModule!==undefined?r.isModule:this.options.isModule),!t)throw new Error(l+" - tag for '"+e+"' not found, the *axLazyElement has to be used on HTML element");if(!this.hasElement(e)){var o=this.addElement(e),a=document.createElement("script");n&&(a.type="module"),a.src=e,a.onload=o.resolve,a.onerror=o.reject,document.body.appendChild(a)}return this.registry.get(this.stripUrlProtocol(e))},e.prototype.addElement=function(e){var t;return this.registry.set(this.stripUrlProtocol(e),new Promise(function(e,n){return t={resolve:e,reject:n}})),t},e.prototype.hasElement=function(e){return this.registry.has(this.stripUrlProtocol(e))},e.prototype.stripUrlProtocol=function(e){return e.replace(/https?:\/\//,"")},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:t.Inject,args:[i]}]},{type:undefined,decorators:[{type:t.Optional},{type:t.Inject,args:[o]}]}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(i),t.ɵɵinject(o,8))},token:e,providedIn:"root"}),e}(),c=function(){function e(e,t,n,r){this.vcr=e,this.template=t,this.elementsLoaderService=n,this.cfr=r}return e.prototype.ngOnInit=function(){var e=this,t=this.template,n=t._declarationTContainer?t._declarationTContainer.tagName:t._def.element.template.nodes[0].element.name,r=this.elementsLoaderService.getElementConfig(n)||{},o=this.elementsLoaderService.options,a=r.loadingComponent||o.loadingComponent;if(this.loadingTemplateRef)this.vcr.createEmbeddedView(this.loadingTemplateRef);else if(a){var i=this.cfr.resolveComponentFactory(a);this.vcr.createComponent(i)}this.elementsLoaderService.loadElement(this.url,n,this.isModule).then(function(){e.vcr.clear(),e.vcr.createEmbeddedView(e.template)})["catch"](function(){e.vcr.clear();var t=r.errorComponent||o.errorComponent;if(e.errorTemplateRef)e.vcr.createEmbeddedView(e.errorTemplateRef);else if(t){var a=e.cfr.resolveComponentFactory(t);e.vcr.createComponent(a)}else console.error("@angular-extensions/elements - Loading of element <"+n+'> failed, please provide <ng-template #error>Loading failed...</ng-template> and reference it in *axLazyElement="errorTemplate: error" to display customized error message in place of element')})},e.decorators=[{type:t.Directive,args:[{selector:"[axLazyElement]"}]}],e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef},{type:s},{type:t.ComponentFactoryResolver}]},e.propDecorators={url:[{type:t.Input,args:["axLazyElement"]}],loadingTemplateRef:[{type:t.Input,args:["axLazyElementLoadingTemplate"]}],errorTemplateRef:[{type:t.Input,args:["axLazyElementErrorTemplate"]}],isModule:[{type:t.Input,args:["axLazyElementModule"]}]},e}(),p=function(){function e(e,t,n,r){this.vcr=e,this.template=t,this.elementsLoaderService=n,this.cfr=r}return e.prototype.ngOnInit=function(){var e=this;if(!this.tag||0===this.tag.length||!this.tag.includes("-"))throw new Error('@angular-extensions/elements - Valid tag has to be specified when using *axLazyElementDynamic directive (use *axLazyElementDynamic="\'some-tag\'"), got: "'+this.tag+'"');var t=this.elementsLoaderService.getElementConfig(this.tag)||{},n=this.elementsLoaderService.options,r=t.loadingComponent||n.loadingComponent;if(this.loadingTemplateRef)this.vcr.createEmbeddedView(this.loadingTemplateRef);else if(r){var o=this.cfr.resolveComponentFactory(r);this.vcr.createComponent(o)}this.elementsLoaderService.loadElement(this.url,this.tag,this.isModule).then(function(){if(e.template._declarationTContainer)throw new Error("The *axLazyElementDynamic directive is currently does NOT support Angular Ivy, please use standard *axLazyElement directive instead!");e.template._def.element.template.nodes[0].element.name=e.tag,e.vcr.clear(),e.vcr.createEmbeddedView(e.template)})["catch"](function(r){var o=t.errorComponent||n.errorComponent;if(e.vcr.clear(),e.errorTemplateRef)e.vcr.createEmbeddedView(e.errorTemplateRef);else if(o){var a=e.cfr.resolveComponentFactory(o);e.vcr.createComponent(a)}else console.error("@angular-extensions/elements - Loading of element <"+e.tag+'> failed, please provide <ng-template #error>Loading failed...</ng-template> and reference it in *axLazyElementDynamic="errorTemplate: error" to display customized error message in place of element\n\n',r)})},e.decorators=[{type:t.Directive,args:[{selector:"[axLazyElementDynamic]"}]}],e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef},{type:s},{type:t.ComponentFactoryResolver}]},e.propDecorators={tag:[{type:t.Input,args:["axLazyElementDynamic"]}],url:[{type:t.Input,args:["axLazyElementDynamicUrl"]}],loadingTemplateRef:[{type:t.Input,args:["axLazyElementDynamicLoadingTemplate"]}],errorTemplateRef:[{type:t.Input,args:["axLazyElementDynamicErrorTemplate"]}],isModule:[{type:t.Input,args:["axLazyElementDynamicModule"]}]},e}();function d(e){if(e)throw new TypeError("LazyElementsModule.forRoot() called twice. Feature modules should use LazyElementsModule.forFeature() instead.");return"guarded"}var m=function(){function e(e,t,n){if(t&&t.length){var r=t[t.length-1];e.addConfigs(r)}}return e.forRoot=function(n){return{ngModule:e,providers:[{provide:r,useValue:n&&n.elementConfigs?n.elementConfigs:[],multi:!0},{provide:o,useValue:n.rootOptions?n.rootOptions:{}},{provide:t.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:n,multi:!0},{provide:a,useFactory:d,deps:[[r,new t.Optional,new t.SkipSelf]]}]}},e.forFeature=function(n){return{ngModule:e,providers:[{provide:r,useValue:n&&n.elementConfigs?n.elementConfigs:[],multi:!0},{provide:t.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:n&&n.elementConfigs,multi:!0}]}},e.decorators=[{type:t.NgModule,args:[{declarations:[c,p],imports:[n.CommonModule],exports:[c,p],providers:[]}]}],e.ctorParameters=function(){return[{type:s},{type:Array,decorators:[{type:t.Optional},{type:t.Inject,args:[r]}]},{type:undefined,decorators:[{type:t.Optional},{type:t.Inject,args:[a]}]}]},e}();e.LAZY_ELEMENTS_REGISTRY=i,e.LazyElementsModule=m,e.createLazyElementRootGuard=d,e.ɵa=r,e.ɵb=o,e.ɵc=a,e.ɵd=c,e.ɵf=s,e.ɵg=p,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("@angular-extensions/elements",["exports","@angular/core","@angular/common"],t):t(((e=e||self)["angular-extensions"]=e["angular-extensions"]||{},e["angular-extensions"].elements={}),e.ng.core,e.ng.common)}(this,function(e,t,r){"use strict";var n=new t.InjectionToken("LAZY_ELEMENT_CONFIGS"),o=new t.InjectionToken("LAZY_ELEMENT_ROOT_OPTIONS"),a=new t.InjectionToken("LAZY_ELEMENT_ROOT_GUARD"),i=new t.InjectionToken("Lazu elements registry",{providedIn:"root",factory:function(){return new Map}}),l="@angular-extensions/elements",s=function(){function e(e,t){this.registry=e,this.options=t,this.configs=[],t||(this.options={})}return e.prototype.addConfigs=function(e){var t=this;e.forEach(function(e){t.getElementConfig(e.tag)?console.warn(l+" - ElementConfig for tag '"+e.tag+"' was previously added, it will not be added multiple times, continue..."):(t.configs.push(e),(e.preload!==undefined?e.preload:t.options.preload)&&t.loadElement(e.url,e.tag,e.isModule))})},e.prototype.getElementConfig=function(e){return this.configs.find(function(t){return t.tag===e})},e.prototype.preload=function(e){var t=this,r=this.configs;e&&(r=this.configs.filter(function(t){return e.includes(t.tag)})),r.forEach(function(e){return t.loadElement(e.url,e.tag,e.isModule)})},e.prototype.loadElement=function(e,t,r){var n=this.getElementConfig(t);if(!e){if(!n)throw new Error(l+" - url for <"+t+"> not found");e=n.url}if(r===undefined&&(r=n&&n.isModule!==undefined?n.isModule:this.options.isModule),!t)throw new Error(l+" - tag for '"+e+"' not found, the *axLazyElement has to be used on HTML element");if(!this.hasElement(e)){var o=this.addElement(e),a=document.createElement("script");r&&(a.type="module"),a.src=e,a.onload=o.resolve,a.onerror=o.reject,document.body.appendChild(a)}return this.registry.get(this.stripUrlProtocol(e))},e.prototype.addElement=function(e){var t;return this.registry.set(this.stripUrlProtocol(e),new Promise(function(e,r){return t={resolve:e,reject:r}})),t},e.prototype.hasElement=function(e){return this.registry.has(this.stripUrlProtocol(e))},e.prototype.stripUrlProtocol=function(e){return e.replace(/https?:\/\//,"")},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:t.Inject,args:[i]}]},{type:undefined,decorators:[{type:t.Optional},{type:t.Inject,args:[o]}]}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(i),t.ɵɵinject(o,8))},token:e,providedIn:"root"}),e}(),c=function(){function e(e,t,r,n,o){this.vcr=e,this.template=t,this.elementsLoaderService=r,this.cfr=n,this.cdr=o}return e.prototype.ngOnInit=function(){var e=this,t=this.template,r=t._declarationTContainer?t._declarationTContainer.tagName:t._def.element.template.nodes[0].element.name,n=this.elementsLoaderService.getElementConfig(r)||{},o=this.elementsLoaderService.options,a=n.loadingComponent||o.loadingComponent;if(this.loadingTemplateRef)this.vcr.createEmbeddedView(this.loadingTemplateRef);else if(a){var i=this.cfr.resolveComponentFactory(a);this.vcr.createComponent(i)}this.elementsLoaderService.loadElement(this.url,r,this.isModule).then(function(){e.vcr.clear(),e.vcr.createEmbeddedView(e.template),e.cdr.markForCheck()})["catch"](function(){e.vcr.clear();var t=n.errorComponent||o.errorComponent;if(e.errorTemplateRef)e.vcr.createEmbeddedView(e.errorTemplateRef),e.cdr.markForCheck();else if(t){var a=e.cfr.resolveComponentFactory(t);e.vcr.createComponent(a),e.cdr.markForCheck()}else console.error("@angular-extensions/elements - Loading of element <"+r+'> failed, please provide <ng-template #error>Loading failed...</ng-template> and reference it in *axLazyElement="errorTemplate: error" to display customized error message in place of element')})},e.decorators=[{type:t.Directive,args:[{selector:"[axLazyElement]"}]}],e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef},{type:s},{type:t.ComponentFactoryResolver},{type:t.ChangeDetectorRef}]},e.propDecorators={url:[{type:t.Input,args:["axLazyElement"]}],loadingTemplateRef:[{type:t.Input,args:["axLazyElementLoadingTemplate"]}],errorTemplateRef:[{type:t.Input,args:["axLazyElementErrorTemplate"]}],isModule:[{type:t.Input,args:["axLazyElementModule"]}]},e}(),d=function(){function e(e,t,r,n,o){this.vcr=e,this.template=t,this.elementsLoaderService=r,this.cfr=n,this.cdr=o}return e.prototype.ngOnInit=function(){var e=this;if(!this.tag||0===this.tag.length||!this.tag.includes("-"))throw new Error('@angular-extensions/elements - Valid tag has to be specified when using *axLazyElementDynamic directive (use *axLazyElementDynamic="\'some-tag\'"), got: "'+this.tag+'"');var t=this.elementsLoaderService.getElementConfig(this.tag)||{},r=this.elementsLoaderService.options,n=t.loadingComponent||r.loadingComponent;if(this.loadingTemplateRef)this.vcr.createEmbeddedView(this.loadingTemplateRef);else if(n){var o=this.cfr.resolveComponentFactory(n);this.vcr.createComponent(o)}this.elementsLoaderService.loadElement(this.url,this.tag,this.isModule).then(function(){if(e.template._declarationTContainer)throw new Error("The *axLazyElementDynamic directive is currently does NOT support Angular Ivy, please use standard *axLazyElement directive instead!");e.template._def.element.template.nodes[0].element.name=e.tag,e.vcr.clear(),e.vcr.createEmbeddedView(e.template),e.cdr.markForCheck()})["catch"](function(n){var o=t.errorComponent||r.errorComponent;if(e.vcr.clear(),e.errorTemplateRef)e.vcr.createEmbeddedView(e.errorTemplateRef),e.cdr.markForCheck();else if(o){var a=e.cfr.resolveComponentFactory(o);e.vcr.createComponent(a),e.cdr.markForCheck()}else console.error("@angular-extensions/elements - Loading of element <"+e.tag+'> failed, please provide <ng-template #error>Loading failed...</ng-template> and reference it in *axLazyElementDynamic="errorTemplate: error" to display customized error message in place of element\n\n',n)})},e.decorators=[{type:t.Directive,args:[{selector:"[axLazyElementDynamic]"}]}],e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef},{type:s},{type:t.ComponentFactoryResolver},{type:t.ChangeDetectorRef}]},e.propDecorators={tag:[{type:t.Input,args:["axLazyElementDynamic"]}],url:[{type:t.Input,args:["axLazyElementDynamicUrl"]}],loadingTemplateRef:[{type:t.Input,args:["axLazyElementDynamicLoadingTemplate"]}],errorTemplateRef:[{type:t.Input,args:["axLazyElementDynamicErrorTemplate"]}],isModule:[{type:t.Input,args:["axLazyElementDynamicModule"]}]},e}();function p(e){if(e)throw new TypeError("LazyElementsModule.forRoot() called twice. Feature modules should use LazyElementsModule.forFeature() instead.");return"guarded"}var m=function(){function e(e,t,r){if(t&&t.length){var n=t[t.length-1];e.addConfigs(n)}}return e.forRoot=function(r){return{ngModule:e,providers:[{provide:n,useValue:r&&r.elementConfigs?r.elementConfigs:[],multi:!0},{provide:o,useValue:r.rootOptions?r.rootOptions:{}},{provide:t.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:r,multi:!0},{provide:a,useFactory:p,deps:[[n,new t.Optional,new t.SkipSelf]]}]}},e.forFeature=function(r){return{ngModule:e,providers:[{provide:n,useValue:r&&r.elementConfigs?r.elementConfigs:[],multi:!0},{provide:t.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:r&&r.elementConfigs,multi:!0}]}},e.decorators=[{type:t.NgModule,args:[{declarations:[c,d],imports:[r.CommonModule],exports:[c,d],providers:[]}]}],e.ctorParameters=function(){return[{type:s},{type:Array,decorators:[{type:t.Optional},{type:t.Inject,args:[n]}]},{type:undefined,decorators:[{type:t.Optional},{type:t.Inject,args:[a]}]}]},e}();e.LAZY_ELEMENTS_REGISTRY=i,e.LazyElementsModule=m,e.createLazyElementRootGuard=p,e.ɵa=n,e.ɵb=o,e.ɵc=a,e.ɵd=c,e.ɵf=s,e.ɵg=d,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=angular-extensions-elements.umd.min.js.map |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import { Directive, Input, TemplateRef, ViewContainerRef, ComponentFactoryResolver } from '@angular/core'; | ||
import { Directive, Input, TemplateRef, ViewContainerRef, ComponentFactoryResolver, ChangeDetectorRef } from '@angular/core'; | ||
import { LazyElementsLoaderService } from '../lazy-elements-loader.service'; | ||
@@ -17,4 +17,5 @@ /** @type {?} */ | ||
* @param {?} cfr | ||
* @param {?} cdr | ||
*/ | ||
constructor(vcr, template, elementsLoaderService, cfr) { | ||
constructor(vcr, template, elementsLoaderService, cfr, cdr) { | ||
this.vcr = vcr; | ||
@@ -24,2 +25,3 @@ this.template = template; | ||
this.cfr = cfr; | ||
this.cdr = cdr; | ||
} | ||
@@ -64,2 +66,3 @@ /** | ||
this.vcr.createEmbeddedView(this.template); | ||
this.cdr.markForCheck(); | ||
})) | ||
@@ -76,2 +79,3 @@ .catch((/** | ||
this.vcr.createEmbeddedView(this.errorTemplateRef); | ||
this.cdr.markForCheck(); | ||
} | ||
@@ -82,2 +86,3 @@ else if (errorComponent) { | ||
this.vcr.createComponent(factory); | ||
this.cdr.markForCheck(); | ||
} | ||
@@ -100,3 +105,4 @@ else { | ||
{ type: LazyElementsLoaderService }, | ||
{ type: ComponentFactoryResolver } | ||
{ type: ComponentFactoryResolver }, | ||
{ type: ChangeDetectorRef } | ||
]; | ||
@@ -141,3 +147,8 @@ LazyElementDynamicDirective.propDecorators = { | ||
LazyElementDynamicDirective.prototype.cfr; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LazyElementDynamicDirective.prototype.cdr; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1lbGVtZW50LWR5bmFtaWMuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFuZ3VsYXItZXh0ZW5zaW9ucy9lbGVtZW50cy8iLCJzb3VyY2VzIjpbImxpYi9sYXp5LWVsZW1lbnRzL2xhenktZWxlbWVudC1keW5hbWljL2xhenktZWxlbWVudC1keW5hbWljLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxLQUFLLEVBRUwsV0FBVyxFQUNYLGdCQUFnQixFQUNoQix3QkFBd0IsRUFDekIsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUNMLHlCQUF5QixFQUUxQixNQUFNLGlDQUFpQyxDQUFDOztNQUVuQyxVQUFVLEdBQUcsOEJBQThCO0FBS2pELE1BQU0sT0FBTywyQkFBMkI7Ozs7Ozs7O0lBV3RDLFlBQ1UsR0FBcUIsRUFDckIsUUFBMEIsRUFDMUIscUJBQWdELEVBQ2hELEdBQTZCO1FBSDdCLFFBQUcsR0FBSCxHQUFHLENBQWtCO1FBQ3JCLGFBQVEsR0FBUixRQUFRLENBQWtCO1FBQzFCLDBCQUFxQixHQUFyQixxQkFBcUIsQ0FBMkI7UUFDaEQsUUFBRyxHQU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hcigpO1xuICAgICAgICBpZiAodGhpcy5lcnJvclRlbXBsYXRlUmVmKSB7XG4gICAgICAgICAgdGhpcy52Y3IuY3JlYXRlRW1iZWRkZWRWaWV3KHRoaXMuZXJyb3JUZW1wbGF0ZVJlZik7XG4gICAgICAgICAgdGhpcy5jZHIubWFya0ZvckNoZWNrKCk7XG4gICAgICAgIH0gZWxzZSBpZiAoZXJyb3JDb21wb25lbnQpIHtcbiAgICAgICAgICBjb25zdCBmYWN0b3J5ID0gdGhpcy5jZnIucmVzb2x2ZUNvbXBvbmVudEZhY3RvcnkoZXJyb3JDb21wb25lbnQpO1xuICAgICAgICAgIHRoaXMudmNyLmNyZWF0ZUNvbXBvbmVudChmYWN0b3J5KTtcbiAgICAgICAgICB0aGlzLmNkci5tYXJrRm9yQ2hlY2soKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBjb25zb2xlLmVycm9yKFxuICAgICAgICAgICAgYCR7TE9HX1BSRUZJWH0gLSBMb2FkaW5nIG9mIGVsZW1lbnQgPCR7dGhpcy50YWd9PiBmYWlsZWQsIHBsZWFzZSBwcm92aWRlIDxuZy10ZW1wbGF0ZSAjZXJyb3I+TG9hZGluZyBmYWlsZWQuLi48L25nLXRlbXBsYXRlPiBhbmQgcmVmZXJlbmNlIGl0IGluICpheExhenlFbGVtZW50RHluYW1pYz1cImVycm9yVGVtcGxhdGU6IGVycm9yXCIgdG8gZGlzcGxheSBjdXN0b21pemVkIGVycm9yIG1lc3NhZ2UgaW4gcGxhY2Ugb2YgZWxlbWVudFxcblxcbmAsXG4gICAgICAgICAgICBlcnJvclxuICAgICAgICAgICk7XG4gICAgICAgIH1cbiAgICAgIH0pO1xuICB9XG59XG4iXX0= |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import { Directive, Input, TemplateRef, ViewContainerRef, ComponentFactoryResolver } from '@angular/core'; | ||
import { Directive, Input, TemplateRef, ViewContainerRef, ComponentFactoryResolver, ChangeDetectorRef } from '@angular/core'; | ||
import { LazyElementsLoaderService } from '../lazy-elements-loader.service'; | ||
@@ -17,4 +17,5 @@ /** @type {?} */ | ||
* @param {?} cfr | ||
* @param {?} cdr | ||
*/ | ||
constructor(vcr, template, elementsLoaderService, cfr) { | ||
constructor(vcr, template, elementsLoaderService, cfr, cdr) { | ||
this.vcr = vcr; | ||
@@ -24,2 +25,3 @@ this.template = template; | ||
this.cfr = cfr; | ||
this.cdr = cdr; | ||
} | ||
@@ -59,2 +61,3 @@ /** | ||
this.vcr.createEmbeddedView(this.template); | ||
this.cdr.markForCheck(); | ||
})) | ||
@@ -70,2 +73,3 @@ .catch((/** | ||
this.vcr.createEmbeddedView(this.errorTemplateRef); | ||
this.cdr.markForCheck(); | ||
} | ||
@@ -76,2 +80,3 @@ else if (errorComponent) { | ||
this.vcr.createComponent(factory); | ||
this.cdr.markForCheck(); | ||
} | ||
@@ -94,3 +99,4 @@ else { | ||
{ type: LazyElementsLoaderService }, | ||
{ type: ComponentFactoryResolver } | ||
{ type: ComponentFactoryResolver }, | ||
{ type: ChangeDetectorRef } | ||
]; | ||
@@ -132,3 +138,8 @@ LazyElementDirective.propDecorators = { | ||
LazyElementDirective.prototype.cfr; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LazyElementDirective.prototype.cdr; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1lbGVtZW50LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bhbmd1bGFyLWV4dGVuc2lvbnMvZWxlbWVudHMvIiwic291cmNlcyI6WyJsaWIvbGF6eS1lbGVtZW50cy9sYXp5LWVsZW1lbnQvbGF6eS1lbGVtZW50LmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxLQUFLLEVBRUwsV0FBVyxFQUNYLGdCQUFnQixFQUNoQix3QkFBd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GVycm9yQ29tcG9uZW50KTtcbiAgICAgICAgICB0aGlzLnZjci5jcmVhdGVDb21wb25lbnQoZmFjdG9yeSk7XG4gICAgICAgICAgdGhpcy5jZHIubWFya0ZvckNoZWNrKCk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgY29uc29sZS5lcnJvcihcbiAgICAgICAgICAgIGAke0xPR19QUkVGSVh9IC0gTG9hZGluZyBvZiBlbGVtZW50IDwke2VsZW1lbnRUYWd9PiBmYWlsZWQsIHBsZWFzZSBwcm92aWRlIDxuZy10ZW1wbGF0ZSAjZXJyb3I+TG9hZGluZyBmYWlsZWQuLi48L25nLXRlbXBsYXRlPiBhbmQgcmVmZXJlbmNlIGl0IGluICpheExhenlFbGVtZW50PVwiZXJyb3JUZW1wbGF0ZTogZXJyb3JcIiB0byBkaXNwbGF5IGN1c3RvbWl6ZWQgZXJyb3IgbWVzc2FnZSBpbiBwbGFjZSBvZiBlbGVtZW50YFxuICAgICAgICAgICk7XG4gICAgICAgIH1cbiAgICAgIH0pO1xuICB9XG59XG4iXX0= |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import { Directive, Input, TemplateRef, ViewContainerRef, ComponentFactoryResolver } from '@angular/core'; | ||
import { Directive, Input, TemplateRef, ViewContainerRef, ComponentFactoryResolver, ChangeDetectorRef } from '@angular/core'; | ||
import { LazyElementsLoaderService } from '../lazy-elements-loader.service'; | ||
@@ -11,3 +11,3 @@ /** @type {?} */ | ||
var LazyElementDynamicDirective = /** @class */ (function () { | ||
function LazyElementDynamicDirective(vcr, template, elementsLoaderService, cfr) { | ||
function LazyElementDynamicDirective(vcr, template, elementsLoaderService, cfr, cdr) { | ||
this.vcr = vcr; | ||
@@ -17,2 +17,3 @@ this.template = template; | ||
this.cfr = cfr; | ||
this.cdr = cdr; | ||
} | ||
@@ -61,2 +62,3 @@ /** | ||
_this.vcr.createEmbeddedView(_this.template); | ||
_this.cdr.markForCheck(); | ||
})) | ||
@@ -73,2 +75,3 @@ .catch((/** | ||
_this.vcr.createEmbeddedView(_this.errorTemplateRef); | ||
_this.cdr.markForCheck(); | ||
} | ||
@@ -79,2 +82,3 @@ else if (errorComponent) { | ||
_this.vcr.createComponent(factory); | ||
_this.cdr.markForCheck(); | ||
} | ||
@@ -96,3 +100,4 @@ else { | ||
{ type: LazyElementsLoaderService }, | ||
{ type: ComponentFactoryResolver } | ||
{ type: ComponentFactoryResolver }, | ||
{ type: ChangeDetectorRef } | ||
]; }; | ||
@@ -140,3 +145,8 @@ LazyElementDynamicDirective.propDecorators = { | ||
LazyElementDynamicDirective.prototype.cfr; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LazyElementDynamicDirective.prototype.cdr; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1lbGVtZW50LWR5bmFtaWMuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFuZ3VsYXItZXh0ZW5zaW9ucy9lbGVtZW50cy8iLCJzb3VyY2VzIjpbImxpYi9sYXp5LWVsZW1lbnRzL2xhenktZWxlbWVudC1keW5hbWljL2xhenktZWxlbWVudC1keW5hbWljLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxLQUFLLEVBRUwsV0FBVyxFQUNYLGdCQUFnQixFQUNoQix3QkFBd0IsRUFDekIsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUNMLHlCQUF5QixFQUUxQixNQUFNLGlDQUFpQyxDQUFDOztJQUVuQyxVQUFVLEdBQUcsOEJBQThCO0FBRWpEO0lBY0UscUNBQ1UsR0FBcUIsRUFDckIsUUFBMEIsRUFDMUIscUJBQWdELEVBQ2hELEdBQTZCO1FBSDdCLFFBQUcsR0FBSCxHQUFHLENBQWtCO1FBQ3JCLGFBQVEsR0FBUixRQUFRLENBQWtCO1FBQzFC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GNoKGVycm9yID0+IHtcbiAgICAgICAgY29uc3QgZXJyb3JDb21wb25lbnQgPVxuICAgICAgICAgIGVsZW1lbnRDb25maWcuZXJyb3JDb21wb25lbnQgfHwgb3B0aW9ucy5lcnJvckNvbXBvbmVudDtcbiAgICAgICAgdGhpcy52Y3IuY2xlYXIoKTtcbiAgICAgICAgaWYgKHRoaXMuZXJyb3JUZW1wbGF0ZVJlZikge1xuICAgICAgICAgIHRoaXMudmNyLmNyZWF0ZUVtYmVkZGVkVmlldyh0aGlzLmVycm9yVGVtcGxhdGVSZWYpO1xuICAgICAgICB9IGVsc2UgaWYgKGVycm9yQ29tcG9uZW50KSB7XG4gICAgICAgICAgY29uc3QgZmFjdG9yeSA9IHRoaXMuY2ZyLnJlc29sdmVDb21wb25lbnRGYWN0b3J5KGVycm9yQ29tcG9uZW50KTtcbiAgICAgICAgICB0aGlzLnZjci5jcmVhdGVDb21wb25lbnQoZmFjdG9yeSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgY29uc29sZS5lcnJvcihcbiAgICAgICAgICAgIGAke0xPR19QUkVGSVh9IC0gTG9hZGluZyBvZiBlbGVtZW50IDwke3RoaXMudGFnfT4gZmFpbGVkLCBwbGVhc2UgcHJvdmlkZSA8bmctdGVtcGxhdGUgI2Vycm9yPkxvYWRpbmcgZmFpbGVkLi4uPC9uZy10ZW1wbGF0ZT4gYW5kIHJlZmVyZW5jZSBpdCBpbiAqYXhMYXp5RWxlbWVudER5bmFtaWM9XCJlcnJvclRlbXBsYXRlOiBlcnJvclwiIHRvIGRpc3BsYXkgY3VzdG9taXplZCBlcnJvciBtZXNzYWdlIGluIHBsYWNlIG9mIGVsZW1lbnRcXG5cXG5gLFxuICAgICAgICAgICAgZXJyb3JcbiAgICAgICAgICApO1xuICAgICAgICB9XG4gICAgICB9KTtcbiAgfVxufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1lbGVtZ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
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import { Directive, Input, TemplateRef, ViewContainerRef, ComponentFactoryResolver } from '@angular/core'; | ||
import { Directive, Input, TemplateRef, ViewContainerRef, ComponentFactoryResolver, ChangeDetectorRef } from '@angular/core'; | ||
import { LazyElementsLoaderService } from '../lazy-elements-loader.service'; | ||
@@ -11,3 +11,3 @@ /** @type {?} */ | ||
var LazyElementDirective = /** @class */ (function () { | ||
function LazyElementDirective(vcr, template, elementsLoaderService, cfr) { | ||
function LazyElementDirective(vcr, template, elementsLoaderService, cfr, cdr) { | ||
this.vcr = vcr; | ||
@@ -17,2 +17,3 @@ this.template = template; | ||
this.cfr = cfr; | ||
this.cdr = cdr; | ||
} | ||
@@ -56,2 +57,3 @@ /** | ||
_this.vcr.createEmbeddedView(_this.template); | ||
_this.cdr.markForCheck(); | ||
})) | ||
@@ -67,2 +69,3 @@ .catch((/** | ||
_this.vcr.createEmbeddedView(_this.errorTemplateRef); | ||
_this.cdr.markForCheck(); | ||
} | ||
@@ -73,2 +76,3 @@ else if (errorComponent) { | ||
_this.vcr.createComponent(factory); | ||
_this.cdr.markForCheck(); | ||
} | ||
@@ -90,3 +94,4 @@ else { | ||
{ type: LazyElementsLoaderService }, | ||
{ type: ComponentFactoryResolver } | ||
{ type: ComponentFactoryResolver }, | ||
{ type: ChangeDetectorRef } | ||
]; }; | ||
@@ -131,3 +136,8 @@ LazyElementDirective.propDecorators = { | ||
LazyElementDirective.prototype.cfr; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LazyElementDirective.prototype.cdr; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1lbGVtZW50LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bhbmd1bGFyLWV4dGVuc2lvbnMvZWxlbWVudHMvIiwic291cmNlcyI6WyJsaWIvbGF6eS1lbGVtZW50cy9sYXp5LWVsZW1lbnQvb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yb3JUZW1wbGF0ZVJlZik7XG4gICAgICAgICAgdGhpcy5jZHIubWFya0ZvckNoZWNrKCk7XG4gICAgICAgIH0gZWxzZSBpZiAoZXJyb3JDb21wb25lbnQpIHtcbiAgICAgICAgICBjb25zdCBmYWN0b3J5ID0gdGhpcy5jZnIucmVzb2x2ZUNvbXBvbmVudEZhY3RvcnkoZXJyb3JDb21wb25lbnQpO1xuICAgICAgICAgIHRoaXMudmNyLmNyZWF0ZUNvbXBvbmVudChmYWN0b3J5KTtcbiAgICAgICAgICB0aGlzLmNkci5tYXJrRm9yQ2hlY2soKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBjb25zb2xlLmVycm9yKFxuICAgICAgICAgICAgYCR7TE9HX1BSRUZJWH0gLSBMb2FkaW5nIG9mIGVsZW1lbnQgPCR7ZWxlbWVudFRhZ30+IGZhaWxlZCwgcGxlYXNlIHByb3ZpZGUgPG5nLXRlbXBsYXRlICNlcnJvcj5Mb2FkaW5nIGZhaWxlZC4uLjwvbmctdGVtcGxhdGU+IGFuZCByZWZlcmVuY2UgaXQgaW4gKmF4TGF6eUVsZW1lbnQ9XCJlcnJvclRlbXBsYXRlOiBlcnJvclwiIHRvIGRpc3BsYXkgY3VzdG9taXplZCBlcnJvciBtZXNzYWdlIGluIHBsYWNlIG9mIGVsZW1lbnRgXG4gICAgICAgICAgKTtcbiAgICAgICAgfVxuICAgICAgfSk7XG4gIH1cbn1cbiJdfQ== |
@@ -1,2 +0,2 @@ | ||
import { InjectionToken, Injectable, Inject, Optional, ɵɵdefineInjectable, ɵɵinject, Directive, ViewContainerRef, TemplateRef, ComponentFactoryResolver, Input, ANALYZE_FOR_ENTRY_COMPONENTS, SkipSelf, NgModule } from '@angular/core'; | ||
import { InjectionToken, Injectable, Inject, Optional, ɵɵdefineInjectable, ɵɵinject, Directive, ViewContainerRef, TemplateRef, ComponentFactoryResolver, ChangeDetectorRef, Input, ANALYZE_FOR_ENTRY_COMPONENTS, SkipSelf, NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
@@ -197,4 +197,5 @@ | ||
* @param {?} cfr | ||
* @param {?} cdr | ||
*/ | ||
constructor(vcr, template, elementsLoaderService, cfr) { | ||
constructor(vcr, template, elementsLoaderService, cfr, cdr) { | ||
this.vcr = vcr; | ||
@@ -204,2 +205,3 @@ this.template = template; | ||
this.cfr = cfr; | ||
this.cdr = cdr; | ||
} | ||
@@ -239,2 +241,3 @@ /** | ||
this.vcr.createEmbeddedView(this.template); | ||
this.cdr.markForCheck(); | ||
})) | ||
@@ -250,2 +253,3 @@ .catch((/** | ||
this.vcr.createEmbeddedView(this.errorTemplateRef); | ||
this.cdr.markForCheck(); | ||
} | ||
@@ -256,2 +260,3 @@ else if (errorComponent) { | ||
this.vcr.createComponent(factory); | ||
this.cdr.markForCheck(); | ||
} | ||
@@ -274,3 +279,4 @@ else { | ||
{ type: LazyElementsLoaderService }, | ||
{ type: ComponentFactoryResolver } | ||
{ type: ComponentFactoryResolver }, | ||
{ type: ChangeDetectorRef } | ||
]; | ||
@@ -297,4 +303,5 @@ LazyElementDirective.propDecorators = { | ||
* @param {?} cfr | ||
* @param {?} cdr | ||
*/ | ||
constructor(vcr, template, elementsLoaderService, cfr) { | ||
constructor(vcr, template, elementsLoaderService, cfr, cdr) { | ||
this.vcr = vcr; | ||
@@ -304,2 +311,3 @@ this.template = template; | ||
this.cfr = cfr; | ||
this.cdr = cdr; | ||
} | ||
@@ -344,2 +352,3 @@ /** | ||
this.vcr.createEmbeddedView(this.template); | ||
this.cdr.markForCheck(); | ||
})) | ||
@@ -356,2 +365,3 @@ .catch((/** | ||
this.vcr.createEmbeddedView(this.errorTemplateRef); | ||
this.cdr.markForCheck(); | ||
} | ||
@@ -362,2 +372,3 @@ else if (errorComponent) { | ||
this.vcr.createComponent(factory); | ||
this.cdr.markForCheck(); | ||
} | ||
@@ -380,3 +391,4 @@ else { | ||
{ type: LazyElementsLoaderService }, | ||
{ type: ComponentFactoryResolver } | ||
{ type: ComponentFactoryResolver }, | ||
{ type: ChangeDetectorRef } | ||
]; | ||
@@ -383,0 +395,0 @@ LazyElementDynamicDirective.propDecorators = { |
@@ -1,2 +0,2 @@ | ||
import { InjectionToken, Injectable, Inject, Optional, ɵɵdefineInjectable, ɵɵinject, Directive, ViewContainerRef, TemplateRef, ComponentFactoryResolver, Input, ANALYZE_FOR_ENTRY_COMPONENTS, SkipSelf, NgModule } from '@angular/core'; | ||
import { InjectionToken, Injectable, Inject, Optional, ɵɵdefineInjectable, ɵɵinject, Directive, ViewContainerRef, TemplateRef, ComponentFactoryResolver, ChangeDetectorRef, Input, ANALYZE_FOR_ENTRY_COMPONENTS, SkipSelf, NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
@@ -225,3 +225,3 @@ | ||
var LazyElementDirective = /** @class */ (function () { | ||
function LazyElementDirective(vcr, template, elementsLoaderService, cfr) { | ||
function LazyElementDirective(vcr, template, elementsLoaderService, cfr, cdr) { | ||
this.vcr = vcr; | ||
@@ -231,2 +231,3 @@ this.template = template; | ||
this.cfr = cfr; | ||
this.cdr = cdr; | ||
} | ||
@@ -270,2 +271,3 @@ /** | ||
_this.vcr.createEmbeddedView(_this.template); | ||
_this.cdr.markForCheck(); | ||
})) | ||
@@ -281,2 +283,3 @@ .catch((/** | ||
_this.vcr.createEmbeddedView(_this.errorTemplateRef); | ||
_this.cdr.markForCheck(); | ||
} | ||
@@ -287,2 +290,3 @@ else if (errorComponent) { | ||
_this.vcr.createComponent(factory); | ||
_this.cdr.markForCheck(); | ||
} | ||
@@ -304,3 +308,4 @@ else { | ||
{ type: LazyElementsLoaderService }, | ||
{ type: ComponentFactoryResolver } | ||
{ type: ComponentFactoryResolver }, | ||
{ type: ChangeDetectorRef } | ||
]; }; | ||
@@ -323,3 +328,3 @@ LazyElementDirective.propDecorators = { | ||
var LazyElementDynamicDirective = /** @class */ (function () { | ||
function LazyElementDynamicDirective(vcr, template, elementsLoaderService, cfr) { | ||
function LazyElementDynamicDirective(vcr, template, elementsLoaderService, cfr, cdr) { | ||
this.vcr = vcr; | ||
@@ -329,2 +334,3 @@ this.template = template; | ||
this.cfr = cfr; | ||
this.cdr = cdr; | ||
} | ||
@@ -373,2 +379,3 @@ /** | ||
_this.vcr.createEmbeddedView(_this.template); | ||
_this.cdr.markForCheck(); | ||
})) | ||
@@ -385,2 +392,3 @@ .catch((/** | ||
_this.vcr.createEmbeddedView(_this.errorTemplateRef); | ||
_this.cdr.markForCheck(); | ||
} | ||
@@ -391,2 +399,3 @@ else if (errorComponent) { | ||
_this.vcr.createComponent(factory); | ||
_this.cdr.markForCheck(); | ||
} | ||
@@ -408,3 +417,4 @@ else { | ||
{ type: LazyElementsLoaderService }, | ||
{ type: ComponentFactoryResolver } | ||
{ type: ComponentFactoryResolver }, | ||
{ type: ChangeDetectorRef } | ||
]; }; | ||
@@ -411,0 +421,0 @@ LazyElementDynamicDirective.propDecorators = { |
@@ -1,2 +0,2 @@ | ||
import { OnInit, TemplateRef, ViewContainerRef, ComponentFactoryResolver } from '@angular/core'; | ||
import { OnInit, TemplateRef, ViewContainerRef, ComponentFactoryResolver, ChangeDetectorRef } from '@angular/core'; | ||
import { LazyElementsLoaderService } from '../lazy-elements-loader.service'; | ||
@@ -8,2 +8,3 @@ export declare class LazyElementDynamicDirective implements OnInit { | ||
private cfr; | ||
private cdr; | ||
tag: string; | ||
@@ -14,4 +15,4 @@ url: string; | ||
isModule: boolean | undefined; | ||
constructor(vcr: ViewContainerRef, template: TemplateRef<any>, elementsLoaderService: LazyElementsLoaderService, cfr: ComponentFactoryResolver); | ||
constructor(vcr: ViewContainerRef, template: TemplateRef<any>, elementsLoaderService: LazyElementsLoaderService, cfr: ComponentFactoryResolver, cdr: ChangeDetectorRef); | ||
ngOnInit(): void; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { OnInit, TemplateRef, ViewContainerRef, ComponentFactoryResolver } from '@angular/core'; | ||
import { OnInit, TemplateRef, ViewContainerRef, ComponentFactoryResolver, ChangeDetectorRef } from '@angular/core'; | ||
import { LazyElementsLoaderService } from '../lazy-elements-loader.service'; | ||
@@ -8,2 +8,3 @@ export declare class LazyElementDirective implements OnInit { | ||
private cfr; | ||
private cdr; | ||
url: string; | ||
@@ -13,4 +14,4 @@ loadingTemplateRef: TemplateRef<any>; | ||
isModule: boolean | undefined; | ||
constructor(vcr: ViewContainerRef, template: TemplateRef<any>, elementsLoaderService: LazyElementsLoaderService, cfr: ComponentFactoryResolver); | ||
constructor(vcr: ViewContainerRef, template: TemplateRef<any>, elementsLoaderService: LazyElementsLoaderService, cfr: ComponentFactoryResolver, cdr: ChangeDetectorRef); | ||
ngOnInit(): void; | ||
} |
{ | ||
"name": "@angular-extensions/elements", | ||
"version": "8.11.0", | ||
"version": "8.11.1", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": "^8.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
305897
3022