From ededf5afa35063667e9ac74f1facb423a4f24683 Mon Sep 17 00:00:00 2001 From: tomastrajan Date: Mon, 2 Sep 2024 12:19:38 +0200 Subject: [PATCH] chore: code style, cleanup --- .../lazy-element-dynamic/lazy-element-dynamic.directive.ts | 3 ++- .../lib/lazy-elements/lazy-element/lazy-element.directive.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/projects/elements/src/lib/lazy-elements/lazy-element-dynamic/lazy-element-dynamic.directive.ts b/projects/elements/src/lib/lazy-elements/lazy-element-dynamic/lazy-element-dynamic.directive.ts index 088da42..4365d8c 100644 --- a/projects/elements/src/lib/lazy-elements/lazy-element-dynamic/lazy-element-dynamic.directive.ts +++ b/projects/elements/src/lib/lazy-elements/lazy-element-dynamic/lazy-element-dynamic.directive.ts @@ -34,7 +34,8 @@ export class LazyElementDynamicDirective implements OnInit { errorTemplateRef: TemplateRef | null = null; @Input('axLazyElementDynamicModule') isModule = false; // eslint-disable-line @angular-eslint/no-input-rename @Input('axLazyElementDynamicImportMap') importMap = false; // eslint-disable-line @angular-eslint/no-input-rename - @Input('axLazyElementLoadingSuccess') loadingSuccess?: () => void; + @Input('axLazyElementLoadingSuccess') loadingSuccess?: () => void; // eslint-disable-line @angular-eslint/no-input-rename + // eslint-disable-next-line @angular-eslint/no-input-rename @Input('axLazyElementLoadingError') loadingError?: ( error: ErrorEvent, ) => void; diff --git a/projects/elements/src/lib/lazy-elements/lazy-element/lazy-element.directive.ts b/projects/elements/src/lib/lazy-elements/lazy-element/lazy-element.directive.ts index 3e1ceb0..8138d4b 100644 --- a/projects/elements/src/lib/lazy-elements/lazy-element/lazy-element.directive.ts +++ b/projects/elements/src/lib/lazy-elements/lazy-element/lazy-element.directive.ts @@ -51,7 +51,8 @@ export class LazyElementDirective implements OnInit, OnChanges { errorTemplateRef: TemplateRef | null = null; @Input('axLazyElementModule') isModule?: boolean; // eslint-disable-line @angular-eslint/no-input-rename @Input('axLazyElementImportMap') importMap = false; // eslint-disable-line @angular-eslint/no-input-rename - @Input('axLazyElementLoadingSuccess') loadingSuccess?: () => void; + @Input('axLazyElementLoadingSuccess') loadingSuccess?: () => void; // eslint-disable-line @angular-eslint/no-input-rename + // eslint-disable-next-line @angular-eslint/no-input-rename @Input('axLazyElementLoadingError') loadingError?: ( error: ErrorEvent, ) => void; @@ -87,7 +88,6 @@ export class LazyElementDirective implements OnInit, OnChanges { #setupUrlListener(): void { const tpl = this.#template as any; - console.log(tpl); const elementTag = tpl._declarationTContainer ? tpl._declarationTContainer.tagName || tpl._declarationTContainer.value : tpl._def.element.#template.nodes[0].element.name;