-
-
Save gdyrrahitis/dce1aa4e61c43c54018d9756f85d24d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class AuthComponent implements OnInit { | |
private form: FormGroup; | |
private returnUrl: string; | |
constructor(private authService: AuthService, private router: Router, | |
private activated: ActivatedRoute) { } | |
ngOnInit() { | |
this.activated.queryParams.subscribe(params => { | |
this.returnUrl = params["returnUrl"]; | |
}); | |
this.form = new FormGroup({ | |
username: new FormControl(null), | |
password: new FormControl(null) | |
}); | |
} | |
ngSubmit() { | |
// code omitted to explain later | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment