I am not sure you are right, because I have Ruby On Rails MVC architecture 
and there I can easily manage the routing and handling subdomain requests 
etc. everything works fine, but on the REST API architecture how to tell 
the Angular2 Typescript Router to .navigate() to my subdomain on 
successfull login? 

Currently I have myproject.com URL, where I have two process login ->> 1st 
enter a valid subdomain name, which I validate on server -> check if I have 
tenant registered to this domain and then I do the login to this 
client1.myproject.com. Here all works fine. I have implemented already the 
dynamically changing API endpoints, which I am calling in my app after I 
log in, but the only thing that I wasn't able to do is to setup the pretty 
public URL as I want ---->>> client1.myproject.com





On Saturday, March 11, 2017 at 4:59:35 PM UTC+1, Sander Elias wrote:
>
> Hi,
>
> This is something you need to take care off on your server. Angular has 
> nothing to do with this.
>
> Regards
> Sander
>
>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to