Promises in Ionic 2 / Angular 2, how to?
<p>I have two functions:</p>

<pre><code>this.geQuizStorage();
this.getQuizData();

geQuizStorage() {
    this.quizStorage.getAnswers().then(data =&gt; {
        return data;
    });
}

getQuizData() {
    this.quizData.getQuiz().then(data =&gt; {
        return data;
    });
}
</code></pre>

<p>I am trying use promises for the 2 functions and wait until both are done, something like:</p>

<pre><code>http.when(this.geQuizStorage(), this.getQuizData()).when(data =&gt; {
    // data[0] first function response
    // data[1]
})
</code></pre>

<p>any ideas how to do this in Ionic 2 / Angular 2</p>