title: Is calling a function on ngOnInit async?
body: <p>If I call a function in ngOnInit() that makes an observable call to get data, is the this.getSomething() call in ngOnInit still async or does ngOnInit wait until this.getSomething() returns a result? Basically does "doSomethingElse" get executed in ngOnInit() before or after this.getSomething() finishes?</p>
  
  <pre class="lang-js prettyprint-override"><code>ngOnInit() {
      this.getSomething();
      doSomethingElse;
  }
  
  getSomething() {
      this.someService.getData()
          .subscribe(
              result =&gt; {
                  this.result = result;
              },
      error =&gt; this.errorMessage = &lt;any&gt;error);
  }
  </code></pre>