Working with a form for the user to edit their data based on a variable on $ rootScope (also could be $ scope).
$rootScope.formData = $rootScope.user;
There is an ng model in the input view:
ng-model="formData.email"
The behavior I expect is to update the model, and only $ rootScope.formData will be updated, but instead both updates.
Is there a way to break the connection between the two?
source share