c680f5b4
Administrator
first commit
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { TdLoadingService } from '@covalent/core';
@Component({
selector: 'qs-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.scss'],
})
export class LoginComponent {
username: string;
password: string;
constructor(private _router: Router,
private _loadingService: TdLoadingService) {}
login(): void {
this._loadingService.register();
alert('Mock log in as ' + this.username);
setTimeout(() => {
this._router.navigate(['/']);
this._loadingService.resolve();
}, 2000);
}
}
|