Fixed build error
This commit is contained in:
parent
1bf46d16c8
commit
8b42e2929b
@ -1,5 +1,4 @@
|
|||||||
import {Component, NgZone, OnInit} from '@angular/core';
|
import {Component, NgZone, OnInit} from '@angular/core';
|
||||||
import {environment} from '../../environments/environment';
|
|
||||||
import {firebaseApp} from '../app.module';
|
import {firebaseApp} from '../app.module';
|
||||||
import {Router} from '@angular/router';
|
import {Router} from '@angular/router';
|
||||||
import * as firebase from 'firebase';
|
import * as firebase from 'firebase';
|
||||||
@ -12,7 +11,6 @@ import {expandDown} from '../animations';
|
|||||||
})
|
})
|
||||||
export class LoginComponent implements OnInit {
|
export class LoginComponent implements OnInit {
|
||||||
animate = false;
|
animate = false;
|
||||||
environment = environment;
|
|
||||||
|
|
||||||
constructor(private router: Router, private ngZone: NgZone) { }
|
constructor(private router: Router, private ngZone: NgZone) { }
|
||||||
|
|
||||||
@ -21,7 +19,7 @@ export class LoginComponent implements OnInit {
|
|||||||
if(!!user) this.ngZone.run(() => this.router.navigate(['/dashboard']));
|
if(!!user) this.ngZone.run(() => this.router.navigate(['/dashboard']));
|
||||||
});
|
});
|
||||||
|
|
||||||
setTimeout(this.ngZone.run(() => this.animate = true), 1000);
|
setTimeout(() => this.ngZone.run(() => this.animate = true), 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
async login() {
|
async login() {
|
||||||
|
Loading…
Reference in New Issue
Block a user