I set a data object to viewModel, and the object's properties are bound to the view's components. At some point I want to set this object to null, and expect the bound components to clear (display nothing). But this is not working for me:
How can I clear the data, so that the bound components reset?
Code:
viewModel.set('myObj', null);
How can I clear the data, so that the bound components reset?
Aucun commentaire:
Enregistrer un commentaire