NetanelBasal
5/27/2017 - 7:11 PM

posts3.query.ts

getArticlesWithComments() {
  return Observable.combineLatest(this.getArticles(), this.selectComments$,
    (articles, comments) => {
      return articles.map(article => {
        return { ...article, comments: articles.comments.map(commentId => comments[commentId])
        }
      });
    }
  )
}