From 61b7d7ddf19b06982a64f1147c84e00b1adc5644 Mon Sep 17 00:00:00 2001 From: Trong Nguyen Date: Tue, 23 Apr 2019 11:50:54 +0200 Subject: [PATCH] ngrx-snips: using ofType operator (effects) --- src/snippets.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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",