Skip to content
This repository has been archived by the owner on Dec 26, 2017. It is now read-only.

Commit

Permalink
Merge pull request #86 from BafS/patch-1
Browse files Browse the repository at this point in the history
fix(docs): Fix missing import and typo
  • Loading branch information
brandonroberts authored Jan 17, 2017
2 parents 01813c8 + 7bffaf9 commit af73cb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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' }))
);
}
```
Expand Down

0 comments on commit af73cb1

Please sign in to comment.