We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property 'error' does not exist on type 'LoginComponent'.
1 <div class="alert alert-danger" [hidden]="!error">...
..with files login.component.ts and login.component.html
The text was updated successfully, but these errors were encountered:
Sounds like the "error" variable does not exist in login.component.ts ?
Sorry, something went wrong.
This is what I did:
login.component.ts
export class LoginComponent { // added a new variable error = ""; credentials = {username: '', password: ''}; constructor(private app: AppService, private http: HttpClient, private router: Router) { } login() { this.app.authenticate(this.credentials, () => { this.router.navigateByUrl('/'); }); return false; } }
No branches or pull requests
Property 'error' does not exist on type 'LoginComponent'.
1 <div class="alert alert-danger" [hidden]="!error">...
..with files login.component.ts and login.component.html
The text was updated successfully, but these errors were encountered: