Click here to Skip to main content
15,887,338 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.


What I have tried:

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`
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900