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( constructor(
private router: Router, private router: Router,
private formBuilder: FormBuilder,) { } private formBuilder: FormBuilder) { }
ngOnInit() { ngOnInit() {
this.resetPassword = this.formBuilder.group({ this.resetPassword = this.formBuilder.group({

View File

@ -24,7 +24,7 @@
</mat-card-content> </mat-card-content>
<mat-card-subtitle> <mat-card-subtitle>
<button mat-raised-button mat-warn color="warn" (click)="signin()">Forgot Password</button> <button mat-raised-button mat-warn color="warn" (click)="resetPasswordBtnClick()">Forgot Password</button>
<button mat-raised-button color="primary" (click)="signin()">Sign Up</button> <button mat-raised-button color="primary" (click)="signupBtnClick()">Sign Up</button>
</mat-card-subtitle> </mat-card-subtitle>
</mat-card> </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() { login() {
console.log('signin component login fnc'); console.log('signin component login fnc');
} }