[英]Embed a dashboard from PowerBi into Angular6 application
I'm trying to embed Pwerbi report with Angular6 application. 我正在尝试将Pwerbi报告嵌入Angular6应用程序。 I read many article but none is for Angular 2 to 6. Can anyone please suggest me how to do it? 我读了很多文章,但没有一篇是针对Angular 2到6的。有人可以建议我怎么做吗?
You can make use of the following example to embed your PowerBI report within an angular application. 您可以使用以下示例将PowerBI报告嵌入角度应用程序中。
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import your library
import { PowerBIModule } from 'angular2-powerbi';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
// Specify your library as an import
PowerBIModule.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.