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?