Answer the question
In order to leave comments, you need to log in
How to make a new observable property in observable object?
I create an object: @observable myData;
Then I receive data from the server and write the response to this variable:
this.myData = response.json(); // {"fruits":["apple","orange","pineapple","grusha","arbuz"]}
myData.freshFruits = ['apple','orange'];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question