Skip to main content
Community site session details

Community site session details

Session Id : +yOxTr8MCFp9odcU3KwRff
Power Apps - Building Power Apps
Unanswered

PCF Control Angular issue while using html2Canvas to capture screenshot

Like (0) ShareShare
ReportReport
Posted on 27 Jul 2021 14:11:42 by

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);
    }
  }
}
Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete