A common scenario is to make an editor dialog that operates off a copy of a ViewModel to avoid mutating the page undearneath with edits that might not be saved. A simple way to clone a ViewModel, including data properties, dirty state, $params, and possibly other things would be useful for this scenario.
A common scenario is to make an editor dialog that operates off a copy of a ViewModel to avoid mutating the page undearneath with edits that might not be saved. A simple way to clone a ViewModel, including data properties, dirty state, $params, and possibly other things would be useful for this scenario.