I have a function called updatedUser() that I defined in a factory. If I inject factory and assign the function to the scope to be used in the view and then invoke it, it doesn't work properly. I expect it to update the user. Instead it just creates a new user.I have a function called updatedUser() that I d