How to initialize computed property?


#1

I have input field, which value depends on select box, so it is computed property. But this value can be also edited. When I manually change computed value, post form, and the form is not valid on the server side, I would like to set the value entered manually, not computed.
So how to set initial value provided by server for property/model that only later should be computed every time when a specific select box is changed?


#2

You would set your initial value using the data option. But, if you want more specific advise to your use case, you should provide code.