title: Ionic Local Storage - save $http database to device
body: <p>I'm having some troubles with the local storage and my Ionic app. The thing is quite straight forward - I would like to store to device all the data from from sql database and then display it when the device is without network.  </p>
  
  <p>So the code where I get my data from looks like this:</p>
  
  <p>controllers.js:</p>
  
  <pre><code> $http.get('http://someurl.php?type=json')
      .success(function(data) {
  
          $scope.info = data;
  
      })
  
      .error(function(response) {
  
          $scope.info = "Error";
  
      });
  </code></pre>
  
  <p>So can anyone help me out with this one?</p>
  
  <p>Thank you!</p>