styleUrl: './login.component.less'
})
export class LoginComponent {
- username : string|undefined = undefined;
- password : string|undefined = undefined;
- token : string|undefined = undefined;
- error : string|undefined = undefined;
+ username : string|null = null;
+ password : string|null = null;
+ token : string|null = null;
+ error : string|null = null;
isLoading : boolean = false;
constructor(private store: Store) {
export const login = createAction(
'[Login] User Login',
- props<{ username: string|undefined, password: string|undefined }>()
+ props<{ username: string|null, password: string|null }>()
);
export const loginSuccess = createAction(
import { login, loginSuccess, loginFailure } from './login.actions';
export interface State {
- token: string|undefined;
- error: string|undefined;
+ token: string|null;
+ error: string|null;
isLoading: boolean;
}