Loading from json

Resolved
Mieriik asked on March 16, 2018

Halo,
How correct load report from json file in Angular 4.
Thanks 
Mieriik
 

Attachments:
roetaesoSS.png

6 answers

Public
Dmytro Zvazhii Dmytro Zvazhii Flexmonster March 19, 2018

Hello Mieriik,

Thank you for your question. Please find the example in our Angular4 integration tutorial. You can initialize the [report] property with the link either to local or remote file. Also, you can pass the JSON object with the report directly to the component. Please find more information about configuring the report here.
Let us know if everything works fine for you.
Regards,
Dmytro

Public
Mieriik March 19, 2018

For example(check attachment): 
Program is compiled(npm start) and button "TEST" work but still have error. I just want to fix that because i cant "ng build".
webpack: Compiled successfully.
ERROR in src/app/pages/pivot/pivot/pivot.component.ts(31,9): error TS2304: Canno
t find name 'flexmonster'.
 
 
 

Attachments:
workMethod.png

Public
Dmytro Zvazhii Dmytro Zvazhii Flexmonster March 19, 2018

Hello Mieriik,
Thank you for writing. Please get the latest Angular4 project from our repository. You will find the example of how to call the API calls in the app.component.ts file:
this.child.flexmonster.APIcallName()
Also please check the changes in the app.component.html file.
Let us know if it solves the case.
Regards,
Dmytro

Public
Mieriik March 21, 2018

Hello again 🙂
I copy your project still have same errors, maybe npm or node version is wrong ?
Node 9.8.0
NPM 5.6.0
 
I repeat again what its my problem.
Button work correct. I  want to remove this errors in node console because with this i cant deploy project to spring server or maybe i do this incorrect. 

Attachments:
screenshot6.png

Public
Tanya Gryshko Tanya Gryshko Flexmonster March 21, 2018

Hello, Mieriik,
NPM and Node versions are correct. We have checked once more and found one issue which was preventing the successful compilation. Our team kindly asks you to get the update from GitHub repository: https://github.com/flexmonster/pivot-angular. Everything should work as expected.
Please let me know if the issue is resolved.
Regards,
Tanya

Public
Mieriik March 22, 2018

Thanks for help

Please login or Register to Submit Answer