2

I got the tslint waring select is deprecated: from 6.1.0. Use the pipeable 'select' operator instead.

my selectors looks like below

private availableStudents$ = this.store.select(getAvailableStudents);

also my package.json

"rxjs": "^6.0.0" "tslint": "~5.9.1" "typescript": "^2.9.2" "@angular/cli": "~6.1.2

Jeyabalan Thavamani
  • 3,057
  • 8
  • 21
  • 33
  • Can you post code snippet here so it would be good to get more idea OR have a look on this question https://stackoverflow.com/questions/51672633/ngrx-6-1-0-select-is-deprecated-what-is-the-new-syntax – amku91 Aug 23 '18 at 06:39

1 Answers1

5

Try the following:

private availableStudents$ = this.store.pipe(select(getAvailableStudents));

The above uses the pipeable operator as suggested in the warning.

And be sure to import it:

import { Store, select } from '@ngrx/store';
DeborahK
  • 57,520
  • 12
  • 104
  • 129