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

angular-lazy-render

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-lazy-render - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

angular-lazy-render.metadata.json

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

{"__symbolic":"module","version":4,"metadata":{"LazyRenderModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"LazyPageComponent"},{"__symbolic":"reference","name":"LazyBlockComponent"}],"exports":[{"__symbolic":"reference","name":"LazyPageComponent"},{"__symbolic":"reference","name":"LazyBlockComponent"}]}]}],"members":{}},"LazyPageComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"lazy-page","template":"<ng-content></ng-content>","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":21},"member":"OnPush"}}]}],"members":{"index":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":5}}]}],"blocks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":11,"character":5},"arguments":[{"__symbolic":"reference","name":"LazyBlockComponent"},{"descendants":true}]}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"render":[{"__symbolic":"method"}]}},"LazyBlockComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"lazy-block","styles":["lazy-block {display:block}"],"template":"<ng-template #tpl><ng-content></ng-content></ng-template>","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":8,"character":21},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":9,"character":19},"member":"None"}}]}],"members":{"tplRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":14,"character":5},"arguments":["tpl"]}]}],"tplVcRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":15,"character":5},"arguments":["tpl",{"read":{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":15,"character":30}}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host","line":17,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":18,"character":9},"arguments":[{"__symbolic":"reference","name":"LazyPageComponent"}]}]],"parameters":[{"__symbolic":"reference","name":"LazyPageComponent"}]}],"render":[{"__symbolic":"method"}]}}},"origins":{"LazyRenderModule":"./index","LazyPageComponent":"./lazy-page.component","LazyBlockComponent":"./lazy-block.component"},"importAs":"angular-lazy-render"}
{"__symbolic":"module","version":3,"metadata":{"LazyRenderModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"LazyPageComponent"},{"__symbolic":"reference","name":"LazyBlockComponent"}],"exports":[{"__symbolic":"reference","name":"LazyPageComponent"},{"__symbolic":"reference","name":"LazyBlockComponent"}]}]}],"members":{}},"LazyPageComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"lazy-page","template":"<ng-content></ng-content>","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"}}]}],"members":{"index":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"blocks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"LazyBlockComponent"},{"descendants":true}]}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"render":[{"__symbolic":"method"}]}},"LazyBlockComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"lazy-block","styles":["lazy-block {display:block}"],"template":"<ng-template #tpl><ng-content></ng-content></ng-template>","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"}}]}],"members":{"tplRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["tpl"]}]}],"tplVcRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["tpl",{"read":{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef"}}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"LazyPageComponent"}]}]],"parameters":[{"__symbolic":"reference","name":"LazyPageComponent"}]}],"render":[{"__symbolic":"method"}]}}},"origins":{"LazyRenderModule":"./index","LazyPageComponent":"./lazy-page.component","LazyBlockComponent":"./lazy-block.component"},"importAs":"angular-lazy-render"}

@@ -7,7 +7,6 @@ (function (global, factory) {

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var LazyBlockComponent = (function () {
var LazyBlockComponent = /** @class */ (function () {
/**
* @param {?} page
*/
function LazyBlockComponent(page) {

@@ -20,6 +19,3 @@ this.isRender = false;

*/
LazyBlockComponent.prototype.render = /**
* @return {?}
*/
function () {
LazyBlockComponent.prototype.render = function () {
var _this = this;

@@ -41,3 +37,5 @@ this.tplVcRef.createEmbeddedView(this.tplRef);

];
/** @nocollapse */
/**
* @nocollapse
*/
LazyBlockComponent.ctorParameters = function () { return [

@@ -47,4 +45,4 @@ { type: LazyPageComponent, decorators: [{ type: core.Host }, { type: core.Inject, args: [core.forwardRef(function () { return LazyPageComponent; }),] },] },

LazyBlockComponent.propDecorators = {
"tplRef": [{ type: core.ViewChild, args: ['tpl',] },],
"tplVcRef": [{ type: core.ViewChild, args: ['tpl', { read: core.ViewContainerRef },] },],
'tplRef': [{ type: core.ViewChild, args: ['tpl',] },],
'tplVcRef': [{ type: core.ViewChild, args: ['tpl', { read: core.ViewContainerRef },] },],
};

@@ -54,7 +52,3 @@ return LazyBlockComponent;

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var LazyPageComponent = (function () {
var LazyPageComponent = /** @class */ (function () {
function LazyPageComponent() {

@@ -67,7 +61,3 @@ this.index = 0;

*/
LazyPageComponent.prototype.ngOnChanges = /**
* @param {?} changes
* @return {?}
*/
function (changes) {
LazyPageComponent.prototype.ngOnChanges = function (changes) {
if (changes.index && changes.index.currentValue) {

@@ -80,6 +70,3 @@ this.index = +changes.index.currentValue;

*/
LazyPageComponent.prototype.ngAfterContentInit = /**
* @return {?}
*/
function () {
LazyPageComponent.prototype.ngAfterContentInit = function () {
var _this = this;

@@ -98,9 +85,6 @@ var /** @type {?} */ initBlock = this.blocks.find(function (item, index) { return index === _this.index; });

*/
LazyPageComponent.prototype.render = /**
* @return {?}
*/
function () {
var /** @type {?} */ child = this.blocks.find(function (child) { return !child.isRender; });
if (child) {
child.render();
LazyPageComponent.prototype.render = function () {
var /** @type {?} */ block = this.blocks.find(function (item) { return !item.isRender; });
if (block) {
block.render();
}

@@ -115,7 +99,9 @@ };

];
/** @nocollapse */
/**
* @nocollapse
*/
LazyPageComponent.ctorParameters = function () { return []; };
LazyPageComponent.propDecorators = {
"index": [{ type: core.Input },],
"blocks": [{ type: core.ContentChildren, args: [LazyBlockComponent, { descendants: true },] },],
'index': [{ type: core.Input },],
'blocks': [{ type: core.ContentChildren, args: [LazyBlockComponent, { descendants: true },] },],
};

@@ -125,7 +111,3 @@ return LazyPageComponent;

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var LazyRenderModule = (function () {
var LazyRenderModule = /** @class */ (function () {
function LazyRenderModule() {

@@ -139,3 +121,5 @@ }

];
/** @nocollapse */
/**
* @nocollapse
*/
LazyRenderModule.ctorParameters = function () { return []; };

@@ -142,0 +126,0 @@ return LazyRenderModule;

import { ChangeDetectionStrategy, Component, ContentChildren, Host, Inject, Input, NgModule, ViewChild, ViewContainerRef, ViewEncapsulation, forwardRef } from '@angular/core';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var LazyBlockComponent = (function () {
var LazyBlockComponent = /** @class */ (function () {
/**
* @param {?} page
*/
function LazyBlockComponent(page) {

@@ -15,6 +14,3 @@ this.isRender = false;

*/
LazyBlockComponent.prototype.render = /**
* @return {?}
*/
function () {
LazyBlockComponent.prototype.render = function () {
var _this = this;

@@ -36,3 +32,5 @@ this.tplVcRef.createEmbeddedView(this.tplRef);

];
/** @nocollapse */
/**
* @nocollapse
*/
LazyBlockComponent.ctorParameters = function () { return [

@@ -42,4 +40,4 @@ { type: LazyPageComponent, decorators: [{ type: Host }, { type: Inject, args: [forwardRef(function () { return LazyPageComponent; }),] },] },

LazyBlockComponent.propDecorators = {
"tplRef": [{ type: ViewChild, args: ['tpl',] },],
"tplVcRef": [{ type: ViewChild, args: ['tpl', { read: ViewContainerRef },] },],
'tplRef': [{ type: ViewChild, args: ['tpl',] },],
'tplVcRef': [{ type: ViewChild, args: ['tpl', { read: ViewContainerRef },] },],
};

@@ -49,7 +47,3 @@ return LazyBlockComponent;

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var LazyPageComponent = (function () {
var LazyPageComponent = /** @class */ (function () {
function LazyPageComponent() {

@@ -62,7 +56,3 @@ this.index = 0;

*/
LazyPageComponent.prototype.ngOnChanges = /**
* @param {?} changes
* @return {?}
*/
function (changes) {
LazyPageComponent.prototype.ngOnChanges = function (changes) {
if (changes.index && changes.index.currentValue) {

@@ -75,6 +65,3 @@ this.index = +changes.index.currentValue;

*/
LazyPageComponent.prototype.ngAfterContentInit = /**
* @return {?}
*/
function () {
LazyPageComponent.prototype.ngAfterContentInit = function () {
var _this = this;

@@ -93,9 +80,6 @@ var /** @type {?} */ initBlock = this.blocks.find(function (item, index) { return index === _this.index; });

*/
LazyPageComponent.prototype.render = /**
* @return {?}
*/
function () {
var /** @type {?} */ child = this.blocks.find(function (child) { return !child.isRender; });
if (child) {
child.render();
LazyPageComponent.prototype.render = function () {
var /** @type {?} */ block = this.blocks.find(function (item) { return !item.isRender; });
if (block) {
block.render();
}

@@ -110,7 +94,9 @@ };

];
/** @nocollapse */
/**
* @nocollapse
*/
LazyPageComponent.ctorParameters = function () { return []; };
LazyPageComponent.propDecorators = {
"index": [{ type: Input },],
"blocks": [{ type: ContentChildren, args: [LazyBlockComponent, { descendants: true },] },],
'index': [{ type: Input },],
'blocks': [{ type: ContentChildren, args: [LazyBlockComponent, { descendants: true },] },],
};

@@ -120,7 +106,3 @@ return LazyPageComponent;

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var LazyRenderModule = (function () {
var LazyRenderModule = /** @class */ (function () {
function LazyRenderModule() {

@@ -134,3 +116,5 @@ }

];
/** @nocollapse */
/**
* @nocollapse
*/
LazyRenderModule.ctorParameters = function () { return []; };

@@ -137,0 +121,0 @@ return LazyRenderModule;

{
"name": "angular-lazy-render",
"version": "0.1.0",
"version": "0.1.1",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

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