formation há 4 anos atrás
pai
commit
9c16d235a7

+ 2 - 1
angular-client/src/app/components/register/register.component.ts

@@ -18,6 +18,7 @@ const facebookLogoURL = "../assets/img/social/facebook.svg";
   styleUrls: ['./register.component.scss']
 })
 export class RegisterComponent implements OnInit {
+  returnUrl: any;
 
   constructor(public router: Router, private authService : AuthService, private formBuilder: FormBuilder, private matIconRegistry: MatIconRegistry, private domSanitizer: DomSanitizer) 
    { this.matIconRegistry.addSvgIcon("googleLogo", this.domSanitizer.bypassSecurityTrustResourceUrl(googleLogoURL)),
@@ -142,7 +143,7 @@ export class RegisterComponent implements OnInit {
     this.loading = true;
    this.authService.signUP(this.formGroup.value).subscribe(
     data => {
-        // this.router.navigate([this.returnUrl]);
+         this.router.navigate([this.returnUrl]);
         console.log(data)
         this.loading = false;
         this.router.navigate(['auth']);