When working with nested object and I try to bind it to a DOM element attribute (for instance the value of an input tag), I find I cannot bind it’s attributes directly but only using a computed prop declared in the viewModel. It is correct ?
Thank you, I tried but in my example it doesn’t works.
I’m not iterating inside an {{#each}} block or something like that. I want to use as index the value of a property that that i store in the viewModel.
And as pointed out in the example, the syntax as use work in for the innerHTML but not inside the tags and components. Why? Do I miss something?
Do you mean the value of the component (for instance the <input> ), or the default value assigned to the map property?
I did something like that using a compute (getter) for “filling” the value of the <input> and it works, but is it necessary to do this way every time I need to bind to a component attribute instead of showing the result in the HTML?