IntelliTect / Coalesce

Quickly build amazing web apps
https://intellitect.github.io/Coalesce/
Apache License 2.0
64 stars 22 forks source link

Add $clone method to ViewModel instances #372

Open ascott18 opened 8 months ago

ascott18 commented 8 months ago

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.