title: call after http request
body: <p>I want to use a function after i recieved data and stored it, how ever i dont get the result i want with the code i use. </p>
  
  <p>Can someone provide me with some details on what i am doing wrong?</p>
  
  <p>my code:</p>
  
  <pre><code>    $http({
        method: 'GET',
        url: 'JsonLocation'
      }).then(
          function successCallback(response) {
              // this callback will be called asynchronously
              // when the response is available.
              self.responseData = response.data;
          }, 
          function errorCallback(response) {
              // called asynchronously if an error occurs
              // or server returns response with an error status.
              console.log(response);
          }
      ).then(
          function completeCallback() {
              // called when the http request is finished.
              restyleData();
          }
      );
  </code></pre>
  
  <p>When the page is loaded and everything is set in place i can run the <code>restyleDate()</code> via developer options, then it works. But i just want to have it fired after everything is loaded and not do it manually.</p>