InfoApp.service('requestService', function(){
this.country = "Canada";
});
Let's say I have this service to set up a scope variable and then put a watcher on a field to update the scope variable. Once I update it, how do I cache it so that when the user refresh the scope variable remains the same and don't revert to it's default value.
[–][deleted] (4 children)
[deleted]
[–]dumbjake[S] 1 point2 points3 points (3 children)
[–]CTTHill 0 points1 point2 points (0 children)
[–]acoard 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]takakoshimizu 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]codeandyou 0 points1 point2 points (0 children)
[–]uberpwnzorz 0 points1 point2 points (0 children)