Hi,
I have the requirement to take screenshot of Bing maps through angular project.
It is working when I am adding the root component in bootstrap but application is not loading after deployment.
Is there any alternative for below code to bootstrap the root component?
entryComponents: [AddressValidationComponent]
//bootstrap: [AddressValidationComponent] //html2canvas is working on adding this line and removing ngDoBootstrap but application is not loading after deployment
})
export class AppModule {
constructor(private injector: Injector) { }
ngDoBootstrap() {
const el = createCustomElement(AddressValidationComponent, { injector: this .injector });
if (!customElements.get('app-address-validation')) {
customElements.define('app-address-validation', el);
}
}
}