My angular factory is quite intricate and structured like this:
app.factory("mainFcty", function(){
return {
a:"",
b:"",
c:""
}
});
When users progress through the app and complete actions such as booking a service, they fill out the above form. However, when they add the data to a shopping cart and start over with mainFcty
, old bindings seem to reappear and overwrite new data collected.
I need a solution to reset all previous bindings of mainFcty
before continuing the process. Any suggestions on how to completely remove traces of the old data?
Your help is highly valued!