iin loginIn you do not return anything. And you already subscribe to the observable.
So in the app you try to call subscribe to an empty type. I would use something more like this which returns an observable:
to log in() {
return this._http.get <Login []> (this._url) .pipe (
tap (data => {this.dataStore.next (data);
console.log ("loginIn: =>" + this.dataStore);
this._route.navigate (['/ home'])
})
);
}
There are other errors but I think that they are due to the model: that is to say: _url is not a URL but a json object (incorrect).
I'm not sure if this is the best place to call route._navigate, either move them to the final subscriptions, or better use a route guard:
https://angular.io/guide/router#canactivate-requiring-authenticationI hope this will help you,
Regards,
Arnaud.