ofType error in '@ngrx/effects'
sridhar-natuva opened this issue · 5 comments
sridhar-natuva commented
Hi Brandon, I just watched your talk on ngconf on auth.
I am trying to use your code and build auth with ngrx. but i am unable to get ofType in '@ngrx/effects' module. please help how to get ofType.
thanks.
brandonroberts commented
If you're installing the latest version as of right now (V7). You'll need to use the ofType
operator imported from @ngrx/effects
instead of the instance operator.
sridhar-natuva commented
I tried to import in the auth.effects.ts file
import { Actions, Effect, ofType} from '@ngrx/effects';
is this correct ?
brandonroberts commented
Yes, that's correct.
sridhar-natuva commented
Thank you, its working now.. And also need to put ofType inside pipe.
:)
brandonroberts commented
Cool!