member signin btn router update

This commit is contained in:
geek 2018-02-09 16:21:57 +09:00
parent d2782be605
commit 003902a858
3 changed files with 10 additions and 3 deletions

View File

@ -16,7 +16,7 @@ export class ResetPasswordComponent implements OnInit {
constructor(
private router: Router,
private formBuilder: FormBuilder,) { }
private formBuilder: FormBuilder) { }
ngOnInit() {
this.resetPassword = this.formBuilder.group({

View File

@ -24,7 +24,7 @@
</mat-card-content>
<mat-card-subtitle>
<button mat-raised-button mat-warn color="warn" (click)="signin()">Forgot Password</button>
<button mat-raised-button color="primary" (click)="signin()">Sign Up</button>
<button mat-raised-button mat-warn color="warn" (click)="resetPasswordBtnClick()">Forgot Password</button>
<button mat-raised-button color="primary" (click)="signupBtnClick()">Sign Up</button>
</mat-card-subtitle>
</mat-card>

View File

@ -41,6 +41,13 @@ export class SigninComponent implements OnInit {
}
resetPasswordBtnClick() {
this.router.navigateByUrl('/auth/reset-password');
}
signupBtnClick() {
this.router.navigateByUrl('/auth/signrup');
}
login() {
console.log('signin component login fnc');
}