I'm planning to use one of my angular 5 application instances for two different clients (Let's say the code names of clients are X and Y).
I want to use the same angular deployment for both of them. My Back End is written in Java and it is written in such a way that all data (update and retrieval) taken from the BE based on the client id.
Let's say when users want to access services from client X, users can type http://url.com/X/rest_of_the_url and use the application with client X credentials. when users want to use client Y services, they can access using http://url.com/Y/rest_of_the_url
How can i do this in angular 5 ?
APP_INITIALIZER.