feat: update UI for Login Component (#96)

Update UI for Login Component using angular material.

Fixes #95
This commit is contained in:
Abhay Chawla
2018-07-05 20:43:38 +05:30
committed by GitHub
parent 9f1df583a5
commit 72020e21d4
5 changed files with 163 additions and 6 deletions
+5 -3
View File
@@ -20,6 +20,8 @@ export class LoginComponent implements OnInit {
error: string;
loginForm: FormGroup;
isLoading = false;
languages = ['en-US', 'fr'];
language = this.languages[0];
constructor(private router: Router,
private formBuilder: FormBuilder,
@@ -54,9 +56,9 @@ export class LoginComponent implements OnInit {
return this.i18nService.language;
}
get languages(): string[] {
return this.i18nService.supportedLanguages;
}
// get languages(): string[] {
// return this.i18nService.supportedLanguages;
// }
private createForm() {
this.loginForm = this.formBuilder.group({