Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Add inline report to Angular <fm-pivot> Component?

Answered
Reynolds Blair asked on November 21, 2019

I’m trying to make some small changes to the example Angular app. Rather than get the report from a service I want to maintain it as part of my project. For now, I have a variable, report, in my app-component.ts that holds the demo report.json as a string, https://cdn.flexmonster.com/reports/report.json. In my template my <fm-pivot> looks like this:

<fm-pivot
  [licenseKey]=”‘my-key-here'”
  [report]=”[ report ]”>
</fm-pivot>

 
When I run this a get an empty pivot table even though the browser console shows that I have a good report object. What am I missing?
 
 
 
 
 

1 answer

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster November 22, 2019

Hello, Reynolds,
 
Thank you for your question.
 
We have noticed that you are trying to get the variable named [ report ], but your factual variable has the name report.
 
We kindly recommend getting the variable through its actual name without any additional brackets ([report]="report").
 
Please, let us know if it helps.
 
Kind Regards,
Illia

Please login or Register to Submit Answer