title: AngularJS and SpringMVC in the same project
body: <p>I'm writing Java Web application and want to use AngularJS on frontend.
  But I don't want to delegate routing and security to angular, but handle it with spring. My file hierarchy in the project looks like that:</p>
  
  <p><a href="https://i.stack.imgur.com/NEoXq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NEoXq.png" alt="hierarchy"></a></p>
  
  <p>I wrote Angular controllers, services etc. And just apply it on the jsp page with some init parameters. All jsp are loaded by Spring controllers, I have some security rules for that pages. Angular also consumes REST API from this application. </p>
  
  <p>The question is about efficiency of such approach. In fact I have a few SPA in here. Every time i load a page, Angular initializes from the beginning (there is about 10 pages). </p>
  
  <p>The reasons I want to stay on this version are:</p>
  
  <ul>
  <li>It's already set (Routing, Security)</li>
  <li>It seems like I don't need to load all the scripts on the page, but only required ones</li>
  </ul>
  
  <p>But also I have feeling I'm doing it wrong way...
  Should I separate Spring and Angular and use Angular also for routing and security handling, not only for DOM manipulation.</p>
  
  <p>What do you think? Do you have any suggestion?</p>