B
B
beduin012018-07-29 13:24:43
Vue.js
beduin01, 2018-07-29 13:24:43

How to refer to an element without knowing its name?

Suppose I need to display an element for a certain number. But I don't know what number the server will give me. How to get rid of the hardcoded value?
<div>{{my_data['2018-07-11']['may']}} </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2018-07-29
@deliro

Obviously, walk through the response from the server. Go learn ramda or lodash to the extreme

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question