Skip to content

Instantly share code, notes, and snippets.

@krishnaanaril
Last active October 5, 2018 10:00
Show Gist options
  • Save krishnaanaril/d180d8e1d2e9dba89bf1e9640c2c8dad to your computer and use it in GitHub Desktop.
Save krishnaanaril/d180d8e1d2e9dba89bf1e9640c2c8dad to your computer and use it in GitHub Desktop.
Minimal DashboardComponent file
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