From 7bffaf9058e7037ada1332212587f476ea739bef Mon Sep 17 00:00:00 2001 From: Fabien Salathe Date: Sat, 31 Dec 2016 17:23:56 +0100 Subject: [PATCH] Fix missing import and typo --- docs/intro.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/intro.md b/docs/intro.md index e899f8e..33a2feb 100644 --- a/docs/intro.md +++ b/docs/intro.md @@ -16,6 +16,7 @@ observable service that emits every action dispatched in your application. import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import { Actions, Effect } from '@ngrx/effects'; + import { Observable } from 'rxjs/Observable'; @Injectable() export class AuthEffects { @@ -33,7 +34,7 @@ observable service that emits every action dispatched in your application. // If successful, dispatch success action with result .map(res => ({ type: 'LOGIN_SUCCESS', payload: res.json() })) // If request fails, dispatch failed action - .catch(() => Observable.of({ type: 'LOGIN_FAILED' })); + .catch(() => Observable.of({ type: 'LOGIN_FAILED' })) ); } ```