next() {
if (this.form.valid) {
this.fooService.login(this.form.get('email').value, this.form.get('password').value)
.subscribe(
principal => {
this.barService.put('sessionId', principal.token);
this.doStuffWithToken(user.token);
},
error => console.log(error)
);
this.goToNextStep();
}
return false; //What?
}
What's the point of the return false
line here? It's done all over the code I am working with, and I don't understand why.