使用 Angular4/5 的 Power BI

Power BI with Angular4/5

如何在 Angular 4 应用程序中导入 PowerBI-JavaScript 及其依赖项,并在服务和组件中使用它。

从 NPM 安装:

npm install --save powerbi-client

比在你的组件中声明

从 'powerbi-client' 导入 * 作为 pbi;