NetanelBasal
5/27/2017 - 6:55 PM

posts1.query.ts

@Injectable()
export class ArticlesQuery {

  selectResult$ = this.store.select(state => state.posts.result);
  selectArticles$ = this.store.select(state => state.posts.entities.articles);
  selectComments$ = this.store.select(state => state.posts.entities.comments);
  selectUsers$ = this.store.select(state => state.posts.entities.users);

  constructor( private store : Store<AppState> ) {}

}