This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Today we are thrilled to introduce the newly released Power BI component for Angular. This component lets you easily embed your Power BI reports, dashboards and more into your Angular web application.
Over the past few years, the popularity of Angular has greatly increased, and it is currently one of the most-used web frameworks by professional developers. The new Power BI component for Angular gets you from insights to actions quickly and easily, by providing the needed framework for integrating Power BI analytics in your Angular app.
Using this library, you can embed Power BI reports, dashboards, tiles, visuals, Q&A and paginated reports. You can also optimize your report's performance using the available bootstrap integration or phased embedding, set and edit event handlers, and take advantage of the available client-side APIs.
The Angular component is now live and available on npm and GitHub.
Check out the sample code below to see how to get started embedding Power BI in your Angular application.
import { PowerBIEmbedModule } from 'powerbi-client-angular';
@NgModule({imports: [ PowerBIEmbedModule]})
<powerbi-report
[embedConfig] = {
{
type: "report",
id: "<Report Id>",
embedUrl: "<Embed Url>",
accessToken: "<Access Token>",
tokenType: models.TokenType.Embed,
settings: {...},
}
}
[cssClassName] = { "reportClass" }
[phasedEmbedding] = { false }
[eventHandlers] = {
new Map([
['loaded', () => console.log('Report loaded');],
])
}
></powerbi-report>
If you want a glance at the look and feel of the new component, you can check out our demo application here.
The app demonstrates the complete flow from bootstrapping the report, to embedding and updating the embedded report, as well as setting events and enabling report authoring.
You can find instructions on how to run the demo in the demo section of the Power BI Angular README.
That’s all for this post. We hope you found it useful.
We'd love to hear more from you! Have any feedback or a great new feature in mind? Please share it with us or vote in our Power BI Embedded Analytics Ideas forum.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.