Last active
October 5, 2018 10:00
-
-
Save krishnaanaril/d180d8e1d2e9dba89bf1e9640c2c8dad to your computer and use it in GitHub Desktop.
Minimal DashboardComponent file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import * as pbi from 'powerbi-client'; | |
@Component({ | |
selector: 'app-dashboard', | |
templateUrl: './dashboard.component.html', | |
styleUrls: ['./dashboard.component.less'] | |
}) | |
export class DashboardComponent implements OnInit { | |
// Embed the report and display it within the div container. | |
powerbi = new pbi.service.Service( | |
pbi.factories.hpmFactory, | |
pbi.factories.wpmpFactory, | |
pbi.factories.routerFactory | |
); | |
constructor() { } | |
ngOnInit() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment