Property 'object' does not exist on type 'Database'

0

I am trying to receive the user of a login.components.ts file using the following code

this.email = this.loginForm.value.email.toLowerCase().replace(/[^a-zA-Z 0-9.]+/g,'').replace(/\./g,''); this.password = this.loginForm.value.password; let loginUser = "/usuarios/${this.email}" const user = this.db.database.object(loginUser);

but it appears when compiling with ng serve, I get Property 'object' does not exist on type 'Database'.

The database I am using is angularfire2

What could be the solution to this error?

    
asked by LPSoldier19 03.09.2018 в 21:48
source

0 answers