Skip to content

Instantly share code, notes, and snippets.

View alanxone's full-sized avatar
🎯
Focusing

Alan alanxone

🎯
Focusing
View GitHub Profile
@alanxone
alanxone / ngrx-example-auth-actions.ts
Last active March 1, 2019 23:45
NGRX Tutorial - Auth actions
// NGRX Complete Tutorial Without Pain (Angular6 / RxJS6)
// https://medium.com/@andrew.kao/ngrx-complete-tutorial-without-pain-angular6-rxjs6-5511b8cb8dac
import { Action } from '@ngrx/store';
// Use 'enum' to be registered as a map later
export enum AuthActionTypes {
Login = '[Auth] Login',
Success = '[Auth] Success',
Failed = '[Auth] Failed',