0

We get observable as a return type with http.get request. UI elements can be binded with this observable collection. In my case I am not sending any http request. There is a predefined JSON in my js file and I want bind it on the UI.

I used JSON.parse to get the JSON object from JSON string. I get the JSON object. Can anybody tell how to convert this JSON object into observable collection which can be binded with UI.

3
  • is it a json array (array of objects) or a json object? Commented Mar 28, 2018 at 11:14
  • share your json and some code Commented Mar 28, 2018 at 11:45
  • Maybe this helps: Observable.of... See link Commented Mar 28, 2018 at 13:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.