diff --git a/src/snippets.json b/src/snippets.json index 9256841..b2d8a1a 100644 --- a/src/snippets.json +++ b/src/snippets.json @@ -1189,11 +1189,11 @@ "import { Injectable } from '@angular/core';", "import { Observable } from 'rxjs';", "import { Action } from '@ngrx/store';", - "import { Actions, Effect } from '@ngrx/effects';", + "import { Actions, Effect, ofType } from '@ngrx/effects';", "", "@Injectable()", "export class ${Name}Effects {", - "\t@Effect() ${name}$: Observable = this.actions$.ofType('${ACTIONTYPE}')$1;", + "\t@Effect() ${name}$: Observable = this.actions$.pipe(ofType('${ACTIONTYPE}'))$1;", "", "\tconstructor(", "\t\tprivate ${actions}$: Actions",