Member 9579525 Ответов: 0

Выдача ошибки "zone.js:202 uncaught referenceerror: lazyelementsloaderservice не определен" при использовании lazyelementmodule


I want to lazy load Angular Elements or any other web components in my Angular application which is inside another app and hosted differently. I am using LazyElementsModule  of "@angular-extensions/elements" this library but giving error zone.js:202 Uncaught ReferenceError: LazyElementsLoaderService is not defined.


Any help will be appriciated.


Что я уже пробовал:

installed npm i @angular-extensions/elements
    also imported import { LazyElementsLoaderService } from '@angular-extensions/elements/lib/lazy-elements/lazy-elements-loader.service';.
    And in html I used like:
    <some-element
          *axLazyElement="elementUrl"
          [data]="data"
          (dataChange)="handleChange($event)"
        >
        </some-element>
    and imported same in @NgModule of App.module.ts file.`enter code here`

0 Ответов