There's nothing special about angular that would prevent you from serving 
the javascript and templates from a different server than the Java 
back-end. In fact, it's a common practice to load all static assets 
(including angular.js scripts) from a separate CDN. In this regard, angular 
is no different than other frameworks (for example people loading jQuery 
from google's CDN and then having jquery talk to your own backend). 

Whether the servers are on the same lan or not doesn't matter as much as 
whether they are in the same DNS domain or not. As long as the page that 
bootstraps your angular application is in the same domain as your Java 
backend, there is no issue. If the domain is different, it can still work, 
but you will have to be aware of cross-domain scripting limitations and 
work around them by using things like JSONP or CORS. 



On Wednesday, December 25, 2013 11:40:10 PM UTC-8, AngularStudent wrote:
>
> Can we have our client side (AngularJs) code and Server Side (i.e 
> Spring/Hibernate) code on two different servers on same LAN
>
>
> when trying it on local machine it doesn't work but I want to know if this 
> will work in case of server or not.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to