member_webapp/@overflow/member/container/member-signup-container.component.ts
crusader 2802c1ae17 ing
2018-05-28 20:16:00 +09:00

31 lines
650 B
TypeScript

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