member_webapp/@overflow/member/container/member-signup-container.component.ts
crusader 869fcf4e72 ing
2018-05-28 14:41:56 +09:00

30 lines
629 B
TypeScript

import {
Component,
OnDestroy,
OnInit,
} from '@angular/core';
import { Member } from '@overflow/commons-typescript/model/member';
import * as AuthStore from '../store/signup';
import {Store} from '@ngrx/store';
@Component({
selector: 'of-member-signup-container',
templateUrl: './signup-container.component.html',
})
export class MemberSignupContainerComponent implements OnInit, OnDestroy {
constructor(
private store: Store<AuthStore.State>,
) { }
ngOnInit() {
}
ngOnDestroy() {
}
onSignup(info: {member: Member, password: string}) {
this.store.dispatch(new AuthStore.Signup(info));
}
}