Skip to content

Angular (Angular 2, Angular io) components based on "PowerBI-Angular" and "PowerBI-Javascript" to use PowerBI Embedded Features

Notifications You must be signed in to change notification settings

diego-d5000/PowerBI-Angular2

Repository files navigation

angular2-powerbi

Installation

To install this library, run:

$ npm install angular2-powerbi --save

Consuming the library

from your Angular AppModule:

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 { }

Once your library is imported, you can use its components:

<!-- You can now use your library component in app.component.html -->
<h1>
  {{title}}
</h1>
<powerbi-component embedUrl="https://app.powerbi.com/reportEmbed?reportId=bd851208e"
accessToken="H4sIAAAAAAAEAB2WtQ70CBKE3" type="report" id="bd851208"></powerbi-component> 

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Diego Plascencia

About

Angular (Angular 2, Angular io) components based on "PowerBI-Angular" and "PowerBI-Javascript" to use PowerBI Embedded Features

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published