src/app/auth/actions/auth.actions.ts
authorize |
authorize()
|
Defined in src/app/auth/actions/auth.actions.ts:10
|
Returns:
Action
|
login |
login()
|
Defined in src/app/auth/actions/auth.actions.ts:14
|
Returns:
Action
|
loginSuccess |
loginSuccess()
|
Defined in src/app/auth/actions/auth.actions.ts:18
|
Returns:
Action
|
logout |
logout()
|
Defined in src/app/auth/actions/auth.actions.ts:22
|
Returns:
Action
|
logoutSuccess |
logoutSuccess()
|
Defined in src/app/auth/actions/auth.actions.ts:26
|
Returns:
Action
|
Static AUTHORIZE |
AUTHORIZE: |
Default value: AUTHORIZE
|
Defined in src/app/auth/actions/auth.actions.ts:8
|
Static LOGIN |
LOGIN: |
Default value: LOGIN
|
Defined in src/app/auth/actions/auth.actions.ts:4
|
Static LOGIN_SUCCESS |
LOGIN_SUCCESS: |
Default value: LOGIN_SUCCESS
|
Defined in src/app/auth/actions/auth.actions.ts:5
|
Static LOGOUT |
LOGOUT: |
Default value: LOGOUT
|
Defined in src/app/auth/actions/auth.actions.ts:6
|
Static LOGOUT_SUCCESS |
LOGOUT_SUCCESS: |
Default value: LOGOUT_SUCCESS
|
Defined in src/app/auth/actions/auth.actions.ts:7
|
import { Action } from '@ngrx/store';
export class AuthActions {
static LOGIN = 'LOGIN';
static LOGIN_SUCCESS = 'LOGIN_SUCCESS';
static LOGOUT = 'LOGOUT';
static LOGOUT_SUCCESS = 'LOGOUT_SUCCESS';
static AUTHORIZE = 'AUTHORIZE';
authorize(): Action {
return { type: AuthActions.AUTHORIZE };
}
login(): Action {
return { type: AuthActions.LOGIN };
}
loginSuccess(): Action {
return { type: AuthActions.LOGIN_SUCCESS};
}
logout(): Action {
return { type: AuthActions.LOGOUT };
}
logoutSuccess(): Action {
return { type: AuthActions.LOGOUT_SUCCESS };
}
}