title: Ionic 3/Typescript Promise
body: <p>Im trying to use Promise to get data from web service    </p>
  
  <pre><code>  login(){
  var obj = {email:'WHATEVER', firstname:''};
  var b = this.getUsers().then(data =&gt; {
    this.films = data;
    obj = this.films.customer_info;
    console.log('inside:' + obj.firstname);
  });
  console.log('outside:' + obj.firstname);
  </code></pre>
  
  <p>}</p>
  
  <p>My expected result: </p>
  
  <blockquote>
    <p>outside:Nam Nam         login.ts:51 inside:Nam Nam<br>
    login.ts:48</p>
  </blockquote>
  
  <p>My actual result : </p>
  
  <blockquote>
    <p>outside:                login.ts:51 inside:Nam Nam<br>
    login.ts:48</p>
  </blockquote>
  
  <p>Can someone tell me how to solve this problem? thanks</p>