I have user data fetched from database and stored into my $rootScope.currentUser
I want to pass those data to the update-form so the user can see old values an update them.
I want that the users' updates does not affect my $rootScope.currentUser so I can keep old values
I tried to achieve that throught 2 solutions:
1) Using ng-model="currentUser.name" ...
=> Thats affect the $rootScope, every change in the form change automatically $rootScope values
2) Using ng-values="currentUser.name" and ng-model="updatedUser.name" on the same input
=> Thats does not affect the $rootScope BUT the form validation is considering the form as empty since updatedUser(the model) doesn't have a default value onload !!
(Also ng-value doesn't work with textArea !! I don't know why!)
So, anyway, what is the best solution to achieve that?!