title: NgRx: Select multiple properties
body: <p>I have an object that is saved on the store and I want to subscribe to listen some properties.</p>
  
  <p>I´m using <code>NgRx 6.1.2</code> but I have a lot of questions about how listen the changes of certain state properties including <em>nested</em> properties.</p>
  
  <p>My intention is use two properties to validate if load data was finished and the other properties to populate component variables and render the component,</p>
  
  <p>I wrote this, but no works, since it listens to the changes of entire store and not the selected properties. </p>
  
  <pre><code>this.isLoading = true;
  this.inicioSubs = this.store
  .pipe(
    select(state =&gt; {
      return {
        temas: state.multimedia.multimedia.temas,
        series: state.multimedia.multimedia.series,
        lastSerie: state.multimedia.multimedia.lastSerie,
        lastTwoYearsSeries: state.multimedia.multimedia.lastTwoYearsSeries,
        lastTwoYearsTemas: state.multimedia.multimedia.lastTwoYearsTemas,
        loaded: state.multimedia.loaded,
        loading: state.multimedia.loading
      };
    }),
    filter(multimedia =&gt; multimedia.loaded &amp;&amp; !multimedia.loading)
  )
  .subscribe(state =&gt; {
    this.multimedia = {
      temas: state.temas,
      series: state.series,
      lastSerie: state.lastSerie,
      lastTwoYearsSeries: state.lastTwoYearsSeries,
      lastTwoYearsTemas: state.lastTwoYearsTemas
    };
  
    this.isLoading = false;
  });
  </code></pre>