I am trying to use this angular component for power bi embedding. https://github.com/microsoft/powerbi-client-angular
It includes the ability to handle specific events. I have tried handling the events via the instructions in github and even directly initializing them, as per the code below, but none of them are firing.
this.reportObj.powerbi.embed(reportContainer, embedConfig);
const report = this.reportObj.getReport();
report.on('loaded', event => {
console.log('Report loaded', event.detail);
this.setContainerHeight();
});
I am specifically trying to track the "loaded" event as I need to resize the container once the report loads as I have no other way to track that.
Has anyone else had this issue and know how to solve?