5 Replies Latest reply on Aug 17, 2017 6:28 AM by HansBleijendaal

    Access the respons-body with Angular-JS

    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?