title: How to save json response in local storage using angularjs?
body: <p>I have api which return json response and I want to store that json response in localstorage to use that response in my another html page using angularjs.</p>
  
  <p>Here is my code which return json response....</p>
  
  <pre><code>QAApp.controller('SearchCtrl', function ($scope, $http, $location) {
  
    $scope.search = function (searchtag) {
             var request = $http({
                            method: 'GET', 
                            url: server + 'api/question/tagged/' + searchtag,
                          });
                  request.success(function(data, status, headers, config) {
                  console.log(data);
                  $scope.qa = data;
              });
  
          }
    }); 
  </code></pre>
  
  <p>Please tell me how can I store it...</p>