I'm working on learning Angular and I am getting a warning that Subscribe is being deprecated. My method is as follows:
login() {
this.accountService.login(this.model).subscribe(response => {
console.log(response);
}, error => {
console.log(error);
})
}
Subscribe has been crossed out and I'm not sure how to re write this to work using the new updated way of doing so. Is anyone able to provide me with the details on how to do this using the observer pattern?