AnsweredAssumed Answered

Access the respons-body with Angular-JS

Question asked by HansBleijendaal on Aug 15, 2017
Latest reply on Aug 17, 2017 by HansBleijendaal

I use piwebapi in combination with angular-JS.

I am able to get the streamsetdata through a piwebapi https-call, see screenshot

 

Now I try to access this respons-body with angular-JS script, with this function:

 

app.js (controller)

 

 

piwebapi.je (service)

In the webpage is try to view the dat with the following script:

 

When I run the page, I do not see any data.

Somehow the databinding between the respons-body and the $scope (Streamsetdata-set) does not work.

What can be wrong?

Outcomes