I've been thinking about the applications for goangular. In the need for immediate storage/database updates, such as a chat application or stocks application etc., I can see how goangular can be extremely useful in the sense of SignalR methodologies. But could it be applied to the traditional form with ten fields and a save button on it? All I could think of, was the traditional form, with ten fields on it -less the save button. If all ten fields are on the scope of the controller, than there would be no need for a save button. Every change of a field would be commemorated to the goinstant storage. Now having said that, how would one UNDO lets say any changes to those ten modified fields? Control+Z ten times? Not so robust. Any ideas on a UNDO all Changes button for such a form? (desperately trying to expand the bonds of real time database transactions)
Creating an UNDO flow for transacted fields
41 Views Asked by Rudy Hinojosa At
1
There are 1 best solutions below
Related Questions in GOINSTANT
- GoInstant: Match a single array element with $goQuery?
- How to get a single item from a GoInstant collection?
- When trying to run the Audio/Video widget (based on the GoRTC library), i get a "...was interrupted while the page was loading" error
- goInstant authentication, ACL, rooms, groups and stuff
- DH keypair exception in salesforce
- How can I convert SQL Server data to importable goinstant data?
- Removing multiple keys based on a stored field value
- goInstant polling first?
- $goQuery is only returning a single value
- What is the correct "returnTo" path for GoAngular $loginUrl running on Cordova/PhoneGap
- (options) should be type Object, but it was type number with value 2
- Creating an UNDO flow for transacted fields
- using goinstant with node.js in order to use webrtc
- How to retrieve the stored value from goinstant
- JavaScript runtime error: 'goinstant' is undefined
Related Questions in GOANGULAR
- GoInstant: Match a single array element with $goQuery?
- How to get a single item from a GoInstant collection?
- goInstant authentication, ACL, rooms, groups and stuff
- Removing multiple keys based on a stored field value
- $goQuery is only returning a single value
- What is the correct "returnTo" path for GoAngular $loginUrl running on Cordova/PhoneGap
- (options) should be type Object, but it was type number with value 2
- Creating an UNDO flow for transacted fields
- How to retrieve the stored value from goinstant
- Sortable list with GoAngular
- Page not updating when using $set with GoAngular
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I'll attempt to answer what I believe to be the spirit of your question first.
Most of the time, when using GoAngular, we're focused on synchronizing application state. Aka: Active clients sharing session data. Inevitably we drift into the territory of long-term persistence. At this point, rigorous validation / sanitization become a necessity, which we can't discuss without some context.
Let's say our user is completing their profile. This profile will be used to create a User model, which we will persist. Now that we have context, it becomes clear that we shouldn't persist a partially complete form, because it wouldn't represent a valid User model. We persist the form once it is complete, and valid.
Implementing this is as simple as creating a custom $scope.onSubmit method and validating the form input before calling
$saveon our new$scope.usermodel.Undo would be easy to implement too, if you use
$scope.users.$add, a key will be generated and returned, you could use this key to remove the new user. If you wanted to roll-back a change, you'd need to implement some system for versions, and roll back to the previous version of that User.Hope I've answered your question in here somewhere :)