import * as pbi from 'powerbi-client'; export class Controller { private $scope: ng.IScope; activePage: pbi.Page; cycleIsEnabled = false; onCycleClicked: Function; onNextClicked: Function; onPageClicked: Function; onPreviousClicked: Function; pages: pbi.Page[]; static $inject = [ '$scope' ] constructor( $scope: ng.IScope ) { this.$scope = $scope; } cyclePageClicked() { this.cycleIsEnabled = !this.cycleIsEnabled; this.onCycleClicked(); } nextPageClicked() { this.onNextClicked(); } pageClicked(page: pbi.Page) { this.onPageClicked({ $page: page }); } previousPageClicked() { this.onPreviousClicked(); } } export default class Directive { restrict = "E"; // template = "