Skip to content
Advertisement

Tag: rest

cannot access objects inside service response

When I tried to access the JSON response I cannot access the object. I need to get the target and datapoint objects and after that I need to iterate the dataPoint array. result.target is undefined in the above case. Controller: JSON response that I am receiving: Answer Response is an array, so you have to use an index. Example

Vue.js: define a service

I’m looking at Vue.js as an alternative to Angular and I really like it so far. To get a feeling for it, I’m refactoring an existing Angular project to a Vue project. I’m just at the point where I need to communicate with my REST API. In Angular I used to define a service for that, that was injected into

Advertisement