Somehow moving the functionality from the previously mentioned subscribe function directly into .subscribe(...) worked and ChangeDetectorRef is no longer undefined... (why did this work now??). Now there is some problem with the headers of post requests when the username or password are wrong when signing in -- this is also something that seems odd because I am not changing the headers, and Angular should not know whether the credentials are correct, yet the error seems to be arising before even reaching the java side...
Somehow moving the functionality from the previously mentioned subscribe function directly into .subscribe(...) worked and ChangeDetectorRef is no longer undefined... (why did this work now??). Now there is some problem with the headers of post requests when the username or password are wrong when signing in -- this is also something that seems odd because I am not changing the headers, and Angular should not know whether the credentials are correct, yet the error seems to be arising before even reaching the java side...

laurho/codeu_project_2017,laurho/codeu_project_2017,laurho/codeu_project_2017,laurho/codeu_project_2017,laurho/codeu_project_2017,laurho/codeu_project_2017