Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@angular-extensions/elements

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular-extensions/elements - npm Package Compare versions

Comparing version 8.1.0 to 8.2.0

2

angular-extensions-elements.metadata.json

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"LazyElementsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":7,"character":12}],"exports":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":10,"character":1},"arguments":[{"selector":"[axLazyElement]"}]}],"members":{"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3},"arguments":["axLazyElement"]}]}],"loadingTemplateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3},"arguments":["axLazyElementLoading"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":18,"character":17},{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"loadElement":[{"__symbolic":"method"}],"addElement":[{"__symbolic":"method"}],"hasElement":[{"__symbolic":"method"}],"stripUrlProtocol":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}}},"origins":{"LazyElementsModule":"./lib/lazy-elements/lazy-elements.module","ɵa":"./lib/lazy-elements/lazy-element/lazy-element.directive","ɵb":"./lib/lazy-elements/lazy-elements-loader.service"},"importAs":"@angular-extensions/elements"}
{"__symbolic":"module","version":4,"metadata":{"LazyElementsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":7,"character":12}],"exports":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":10,"character":1},"arguments":[{"selector":"[axLazyElement]"}]}],"members":{"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3},"arguments":["axLazyElement"]}]}],"loadingTemplateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3},"arguments":["axLazyElementLoading"]}]}],"isModule":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3},"arguments":["axLazyElementModule"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":19,"character":17},{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"loadElement":[{"__symbolic":"method"}],"addElement":[{"__symbolic":"method"}],"hasElement":[{"__symbolic":"method"}],"stripUrlProtocol":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}}},"origins":{"LazyElementsModule":"./lib/lazy-elements/lazy-elements.module","ɵa":"./lib/lazy-elements/lazy-element/lazy-element.directive","ɵb":"./lib/lazy-elements/lazy-elements-loader.service"},"importAs":"@angular-extensions/elements"}

@@ -20,2 +20,3 @@ (function (global, factory) {

* @param {?} tag
* @param {?=} isModule
* @return {?}

@@ -26,5 +27,7 @@ */

* @param {?} tag
* @param {?=} isModule
* @return {?}
*/
function (url, tag) {
function (url, tag, isModule) {
if (isModule === void 0) { isModule = false; }
if (!url) {

@@ -41,2 +44,5 @@ throw new Error(LOG_PREFIX + " - url for <" + tag + "> not found");

var script = (/** @type {?} */ (document.createElement('script')));
if (isModule) {
script.type = 'module';
}
script.src = url;

@@ -129,3 +135,5 @@ script.onload = notifier;

}
this.elementsLoaderService.loadElement(this.url, elementTag).then((/**
this.elementsLoaderService
.loadElement(this.url, elementTag, this.isModule)
.then((/**
* @return {?}

@@ -151,3 +159,4 @@ */

url: [{ type: core.Input, args: ['axLazyElement',] }],
loadingTemplateRef: [{ type: core.Input, args: ['axLazyElementLoading',] }]
loadingTemplateRef: [{ type: core.Input, args: ['axLazyElementLoading',] }],
isModule: [{ type: core.Input, args: ['axLazyElementModule',] }]
};

@@ -154,0 +163,0 @@ return LazyElementDirective;

@@ -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=function(){function e(){this.registry=new Map}return e.prototype.loadElement=function(e,t){if(!e)throw new Error("@angular-extensions/elements - url for <"+t+"> not found");if(!t)throw new Error("@angular-extensions/elements - tag for '"+e+"' not found, the *axLazyElement has to be used on HTML element");if(!this.hasElement(e)){var n=this.addElement(e),r=document.createElement("script");r.src=e,r.onload=n,document.body.appendChild(r)}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){return t=e})),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[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),o=function(){function e(e,t,n){this.vcr=e,this.template=t,this.elementsLoaderService=n}return e.prototype.ngOnInit=function(){var e=this,t=this.template._def.element.template.nodes[0].element.name;this.loadingTemplateRef&&this.vcr.createEmbeddedView(this.loadingTemplateRef),this.elementsLoaderService.loadElement(this.url,t).then(function(){e.vcr.clear(),e.vcr.createEmbeddedView(e.template)})},e.decorators=[{type:t.Directive,args:[{selector:"[axLazyElement]"}]}],e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef},{type:r}]},e.propDecorators={url:[{type:t.Input,args:["axLazyElement"]}],loadingTemplateRef:[{type:t.Input,args:["axLazyElementLoading"]}]},e}(),a=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[o],imports:[n.CommonModule],exports:[o]}]}],e}();e.LazyElementsModule=a,e.ɵa=o,e.ɵb=r,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,n){"use strict";var r=function(){function e(){this.registry=new Map}return e.prototype.loadElement=function(e,t,n){if(void 0===n&&(n=!1),!e)throw new Error("@angular-extensions/elements - url for <"+t+"> not found");if(!t)throw new Error("@angular-extensions/elements - tag for '"+e+"' not found, the *axLazyElement has to be used on HTML element");if(!this.hasElement(e)){var r=this.addElement(e),o=document.createElement("script");n&&(o.type="module"),o.src=e,o.onload=r,document.body.appendChild(o)}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){return t=e})),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[]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),o=function(){function e(e,t,n){this.vcr=e,this.template=t,this.elementsLoaderService=n}return e.prototype.ngOnInit=function(){var e=this,t=this.template._def.element.template.nodes[0].element.name;this.loadingTemplateRef&&this.vcr.createEmbeddedView(this.loadingTemplateRef),this.elementsLoaderService.loadElement(this.url,t,this.isModule).then(function(){e.vcr.clear(),e.vcr.createEmbeddedView(e.template)})},e.decorators=[{type:t.Directive,args:[{selector:"[axLazyElement]"}]}],e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef},{type:r}]},e.propDecorators={url:[{type:t.Input,args:["axLazyElement"]}],loadingTemplateRef:[{type:t.Input,args:["axLazyElementLoading"]}],isModule:[{type:t.Input,args:["axLazyElementModule"]}]},e}(),a=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[o],imports:[n.CommonModule],exports:[o]}]}],e}();e.LazyElementsModule=a,e.ɵa=o,e.ɵb=r,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=angular-extensions-elements.umd.min.js.map

@@ -29,3 +29,5 @@ /**

}
this.elementsLoaderService.loadElement(this.url, elementTag).then((/**
this.elementsLoaderService
.loadElement(this.url, elementTag, this.isModule)
.then((/**
* @return {?}

@@ -52,3 +54,4 @@ */

url: [{ type: Input, args: ['axLazyElement',] }],
loadingTemplateRef: [{ type: Input, args: ['axLazyElementLoading',] }]
loadingTemplateRef: [{ type: Input, args: ['axLazyElementLoading',] }],
isModule: [{ type: Input, args: ['axLazyElementModule',] }]
};

@@ -60,2 +63,4 @@ if (false) {

LazyElementDirective.prototype.loadingTemplateRef;
/** @type {?} */
LazyElementDirective.prototype.isModule;
/**

@@ -77,2 +82,2 @@ * @type {?}

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1lbGVtZW50LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bhbmd1bGFyLWV4dGVuc2lvbnMvZWxlbWVudHMvIiwic291cmNlcyI6WyJsaWIvbGF6eS1lbGVtZW50cy9sYXp5LWVsZW1lbnQvbGF6eS1lbGVtZW50LmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxLQUFLLEVBRUwsV0FBVyxFQUNYLGdCQUFnQixFQUNqQixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUs1RSxNQUFNLE9BQU8sb0JBQW9COzs7Ozs7O0lBSS9CLFlBQ1UsR0FBcUIsRUFDckIsUUFBMEIsRUFDMUIscUJBQWdEO1FBRmhELFFBQUcsR0FBSCxHQUFHLENBQWtCO1FBQ3JCLGFBQVEsR0FBUixRQUFRLENBQWtCO1FBQzFCLDBCQUFxQixHQUFyQixxQkFBcUIsQ0FBMkI7SUFDdkQsQ0FBQzs7OztJQUVKLFFB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ICAgICAgLnRoZW4oKCkgPT4ge1xuICAgICAgICB0aGlzLnZjci5jbGVhcigpO1xuICAgICAgICB0aGlzLnZjci5jcmVhdGVFbWJlZGRlZFZpZXcodGhpcy50ZW1wbGF0ZSk7XG4gICAgICB9KTtcbiAgfVxufVxuIl19

@@ -16,5 +16,6 @@ /**

* @param {?} tag
* @param {?=} isModule
* @return {?}
*/
loadElement(url, tag) {
loadElement(url, tag, isModule = false) {
if (!url) {

@@ -31,2 +32,5 @@ throw new Error(`${LOG_PREFIX} - url for <${tag}> not found`);

const script = (/** @type {?} */ (document.createElement('script')));
if (isModule) {
script.type = 'module';
}
script.src = url;

@@ -82,2 +86,2 @@ script.onload = notifier;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1lbGVtZW50cy1sb2FkZXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bhbmd1bGFyLWV4dGVuc2lvbnMvZWxlbWVudHMvIiwic291cmNlcyI6WyJsaWIvbGF6eS1lbGVtZW50cy9sYXp5LWVsZW1lbnRzLWxvYWRlci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7TUFFckMsVUFBVSxHQUFHLDhCQUE4QjtBQUtqRCxNQUFNLE9BQU8seUJBQXlCO0lBR3BDO1FBRkEsYUFBUSxHQUErQixJQUFJLEdBQUcsRUFBeUIsQ0FBQztJQUV6RCxDQUFDOzs7Ozs7SUFFaEIsV0FBVyxDQUFDLEdBQVcsRUFBRSxHQUFXO1FBQ2xDLElBQUksQ0FBQyxHQUFHLEVBQUU7WUFDUixNQUFNLElBQUksS0FBSyxDQUFDLEdBQUcsVUFBVSxlQUFlLEdBQUcsYUFBYSxDQUFDLENBQUM7U0FDL0Q7UUFFRCxJQUFJLENBQUMsR0FBRyxFQUFFO1lBQ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c2NyaXB0Lm9ubG9hZCA9IG5vdGlmaWVyO1xuICAgICAgZG9jdW1lbnQuYm9keS5hcHBlbmRDaGlsZChzY3JpcHQpO1xuICAgIH1cblxuICAgIHJldHVybiB0aGlzLnJlZ2lzdHJ5LmdldCh0aGlzLnN0cmlwVXJsUHJvdG9jb2wodXJsKSk7XG4gIH1cblxuICBwcml2YXRlIGFkZEVsZW1lbnQodXJsOiBzdHJpbmcpOiAoKSA9PiB2b2lkIHtcbiAgICBsZXQgbm90aWZpZXI7XG4gICAgdGhpcy5yZWdpc3RyeS5zZXQoXG4gICAgICB0aGlzLnN0cmlwVXJsUHJvdG9jb2wodXJsKSxcbiAgICAgIG5ldyBQcm9taXNlPHZvaWQ+KHJlc29sdmUgPT4gKG5vdGlmaWVyID0gcmVzb2x2ZSkpXG4gICAgKTtcbiAgICByZXR1cm4gbm90aWZpZXI7XG4gIH1cblxuICBwcml2YXRlIGhhc0VsZW1lbnQodXJsOiBzdHJpbmcpOiBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5yZWdpc3RyeS5oYXModGhpcy5zdHJpcFVybFByb3RvY29sKHVybCkpO1xuICB9XG5cbiAgcHJpdmF0ZSBzdHJpcFVybFByb3RvY29sKHVybDogc3RyaW5nKTogc3RyaW5nIHtcbiAgICByZXR1cm4gdXJsLnJlcGxhY2UoL2h0dHBzPzpcXC9cXC8vLCAnJyk7XG4gIH1cbn1cbiJdfQ==

@@ -27,3 +27,5 @@ /**

}
this.elementsLoaderService.loadElement(this.url, elementTag).then((/**
this.elementsLoaderService
.loadElement(this.url, elementTag, this.isModule)
.then((/**
* @return {?}

@@ -49,3 +51,4 @@ */

url: [{ type: Input, args: ['axLazyElement',] }],
loadingTemplateRef: [{ type: Input, args: ['axLazyElementLoading',] }]
loadingTemplateRef: [{ type: Input, args: ['axLazyElementLoading',] }],
isModule: [{ type: Input, args: ['axLazyElementModule',] }]
};

@@ -60,2 +63,4 @@ return LazyElementDirective;

LazyElementDirective.prototype.load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isModule
* @return {?}

@@ -22,5 +23,7 @@ */

* @param {?} tag
* @param {?=} isModule
* @return {?}
*/
function (url, tag) {
function (url, tag, isModule) {
if (isModule === void 0) { isModule = false; }
if (!url) {

@@ -37,2 +40,5 @@ throw new Error(LOG_PREFIX + " - url for <" + tag + "> not found");

var script = (/** @type {?} */ (document.createElement('script')));
if (isModule) {
script.type = 'module';
}
script.src = url;

@@ -105,2 +111,2 @@ script.onload = notifier;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1lbGVtZW50cy1sb2FkZXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bhbmd1bGFyLWV4dGVuc2lvbnMvZWxlbWVudHMvIiwic291cmNlcyI6WyJsaWIvbGF6eS1lbGVtZW50cy9sYXp5LWVsZW1lbnRzLWxvYWRlci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7SUFFckMsVUFBVSxHQUFHLDhCQUE4QjtBQUVqRDtJQU1FO1FBRkEsYUFBUSxHQUErQixJQUFJLEdBQUcsRUFBeUIsQ0FBQztJQUV6RCxDQUFDOzs7Ozs7SUFFaEIsK0NBQVc7Ozs7O0lBQVgsVUFBWSxHQUFXLEVBQUUsR0FBVztRQUNsQyxJQUFJLENBQUMsR0FBRyxFQUFFO1lBQ1IsTUFBTSxJQUFJLEtBQUssQ0FBSSxVQUFVLG9CQUFlLEdBQUcsZ0JBQWEsQ0FBQyxDQUFDO1NBQy9EO1FBRUQsSUFBSSxDQUFDLEdBQUcsRUFBRTtZQUNSLE1BQU0sSUFBSSxLQUFLLENBQ1YsVUFBVSxvQkFBZSxHQUFHLG1FQUFnRSxDQUNoRyxDQUFDO1NBQ0g7UUFFRCxJQUFJLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxHQUFHLENB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R1bGUnO1xuICAgICAgfVxuICAgICAgc2NyaXB0LnNyYyA9IHVybDtcbiAgICAgIHNjcmlwdC5vbmxvYWQgPSBub3RpZmllcjtcbiAgICAgIGRvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoc2NyaXB0KTtcbiAgICB9XG5cbiAgICByZXR1cm4gdGhpcy5yZWdpc3RyeS5nZXQodGhpcy5zdHJpcFVybFByb3RvY29sKHVybCkpO1xuICB9XG5cbiAgcHJpdmF0ZSBhZGRFbGVtZW50KHVybDogc3RyaW5nKTogKCkgPT4gdm9pZCB7XG4gICAgbGV0IG5vdGlmaWVyO1xuICAgIHRoaXMucmVnaXN0cnkuc2V0KFxuICAgICAgdGhpcy5zdHJpcFVybFByb3RvY29sKHVybCksXG4gICAgICBuZXcgUHJvbWlzZTx2b2lkPihyZXNvbHZlID0+IChub3RpZmllciA9IHJlc29sdmUpKVxuICAgICk7XG4gICAgcmV0dXJuIG5vdGlmaWVyO1xuICB9XG5cbiAgcHJpdmF0ZSBoYXNFbGVtZW50KHVybDogc3RyaW5nKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHRoaXMucmVnaXN0cnkuaGFzKHRoaXMuc3RyaXBVcmxQcm90b2NvbCh1cmwpKTtcbiAgfVxuXG4gIHByaXZhdGUgc3RyaXBVcmxQcm90b2NvbCh1cmw6IHN0cmluZyk6IHN0cmluZyB7XG4gICAgcmV0dXJuIHVybC5yZXBsYWNlKC9odHRwcz86XFwvXFwvLywgJycpO1xuICB9XG59XG4iXX0=

@@ -17,5 +17,6 @@ import { Injectable, ɵɵdefineInjectable, Directive, ViewContainerRef, TemplateRef, Input, NgModule } from '@angular/core';

* @param {?} tag
* @param {?=} isModule
* @return {?}
*/
loadElement(url, tag) {
loadElement(url, tag, isModule = false) {
if (!url) {

@@ -32,2 +33,5 @@ throw new Error(`${LOG_PREFIX} - url for <${tag}> not found`);

const script = (/** @type {?} */ (document.createElement('script')));
if (isModule) {
script.type = 'module';
}
script.src = url;

@@ -106,3 +110,5 @@ script.onload = notifier;

}
this.elementsLoaderService.loadElement(this.url, elementTag).then((/**
this.elementsLoaderService
.loadElement(this.url, elementTag, this.isModule)
.then((/**
* @return {?}

@@ -129,3 +135,4 @@ */

url: [{ type: Input, args: ['axLazyElement',] }],
loadingTemplateRef: [{ type: Input, args: ['axLazyElementLoading',] }]
loadingTemplateRef: [{ type: Input, args: ['axLazyElementLoading',] }],
isModule: [{ type: Input, args: ['axLazyElementModule',] }]
};

@@ -132,0 +139,0 @@

@@ -17,2 +17,3 @@ import { Injectable, ɵɵdefineInjectable, Directive, ViewContainerRef, TemplateRef, Input, NgModule } from '@angular/core';

* @param {?} tag
* @param {?=} isModule
* @return {?}

@@ -23,5 +24,7 @@ */

* @param {?} tag
* @param {?=} isModule
* @return {?}
*/
function (url, tag) {
function (url, tag, isModule) {
if (isModule === void 0) { isModule = false; }
if (!url) {

@@ -38,2 +41,5 @@ throw new Error(LOG_PREFIX + " - url for <" + tag + "> not found");

var script = (/** @type {?} */ (document.createElement('script')));
if (isModule) {
script.type = 'module';
}
script.src = url;

@@ -126,3 +132,5 @@ script.onload = notifier;

}
this.elementsLoaderService.loadElement(this.url, elementTag).then((/**
this.elementsLoaderService
.loadElement(this.url, elementTag, this.isModule)
.then((/**
* @return {?}

@@ -148,3 +156,4 @@ */

url: [{ type: Input, args: ['axLazyElement',] }],
loadingTemplateRef: [{ type: Input, args: ['axLazyElementLoading',] }]
loadingTemplateRef: [{ type: Input, args: ['axLazyElementLoading',] }],
isModule: [{ type: Input, args: ['axLazyElementModule',] }]
};

@@ -151,0 +160,0 @@ return LazyElementDirective;

@@ -9,4 +9,5 @@ import { OnInit, TemplateRef, ViewContainerRef } from '@angular/core';

loadingTemplateRef: TemplateRef<any>;
isModule: boolean;
constructor(vcr: ViewContainerRef, template: TemplateRef<any>, elementsLoaderService: LazyElementsLoaderService);
ngOnInit(): void;
}
export declare class LazyElementsLoaderService {
registry: Map<string, Promise<void>>;
constructor();
loadElement(url: string, tag: string): Promise<void>;
loadElement(url: string, tag: string, isModule?: boolean): Promise<void>;
private addElement;

@@ -6,0 +6,0 @@ private hasElement;

{
"name": "@angular-extensions/elements",
"version": "8.1.0",
"version": "8.2.0",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc