Angular 2 question only:
Whats the best way to store global variables like authentication token or base url (environment settings) so that all classes can have acces
In your specific scenario you would actually want to store token in localstorage since a page refresh will cause you to loose token value stored in memory.