Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
jsc108
Frequent Visitor

Embed Powerbi into angular not working

Hi There,

 

We have embeded our powerbi reports in our angular app. Everything was working fine untill few days back , Now the reports are not loading in our app. We have added our custom loading image and was hiding that on 'rendered ' event like powerbi docs suggested. But now we are not getting this event so our loader image keep showing as we are not getting rendered event. We are using below 

https://www.npmjs.com/package/powerbi-client-angular client library. 

 

Are there any recent changes in powerbi side which is causing this ?

 

Thank You in Advance!

1 REPLY 1
v-henryk-mstf
Community Support
Community Support

Hi @jsc108 ,

 

For such errors, refer to powerbi-client-angular, the Power BI Angular component allows embedding Power BI reports in Angular applications

try below code:

<powerbi-report
    [embedConfig] = {{
        type: "report",
        id: "<Report Id>",
        embedUrl: "<Embed Url>",
        accessToken: "<Access Token>",
        tokenType: models.TokenType.Embed,
        settings: {
            panes: {
                filters: {
                    expanded: false,
                    visible: false
                }
            },
            background: models.BackgroundType.Transparent,
        }
    }}

    [cssClassName] = { "reportClass" }

    [phasedEmbedding] = { false }

    [eventHandlers] = {
        new Map([
            ['loaded', () => console.log('Report loaded');],
            ['rendered', () => console.log('Report rendered');],
            ['error', (event) => console.log(event.detail);]
        ])
    }
>
</powerbi-report>

 

For more on embedding Power BI reports, refer to the related documentation link.

Embed content in your Power BI embedded analytics application enabling better embedded BI insights f...

Embed content in your Power BI embedded analytics application - Power BI | Microsoft Docs


If the problem is still not resolved, please provide detailed error information and related screenshoots. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.