I am using angular factory to pass data from one form to another form.
Working fine, but when I refresh the page, data lost from the page. How I can resolve this ?
I am using below code
angular.module('app')
    .factory('SignupService',function() {
        return {
                first_name : ''
        };
    } );
and I am assigning value like this in form1.
SignupService.first_name = $scope.first_name ; 
And getting value in form2 like this
function Signup2Ctrl($scope,$http,$location,$auth,$state, SignupService){
    alert(SignupService.first_name);
});
How to resolve this or any other alternative to handle this.
Thanks in advance.