title: render templates for a specific route directly from the server
body: <p>when using routes in an angular.js application is it possible to render the template for a specific route directly from the server and then attach your controller to it?</p>
  
  <p>For example, i have an application with a login screen and a screen which shows some content when the user is logged in.</p>
  
  <ul>
  <li>When the user isn't logged in and he opens the application it would be cool if i could render the template for the login route directly from the server and then attach the right controller to it. So that the user gets feedback directly and doesn't have to wait until angular.js is bootstrapped before the page shows anything.</li>
  <li>When the user is logged in and he opens the application i want to render the template for the content page directly from the server and then attach the controller to it as you would do when you don't use the routing from angular.js (with ng-controller for example). Some stuff on this page will be cloacked because it needs the controller attached to it before it shows anything useful.</li>
  </ul>
  
  <p>I'm quiet new to angular, i just experimented a bit with angular.js and the routing api. But in my test application when i open it, it first shows nothing and then when angular is bootstrapped it renders the view for the "/" route. I want to show the view direcly because some of the information doesn't need the controller attached to it. Other things i can hide using ng-cloack or ng-bind. But this way it will be much cleaner.</p>
  
  <p>Doesn anyone has an idea how to achieve this? If my explanation still is a bit unclear, let me know. I found it hard to explain this ...</p>
  
  <p>kind regards,</p>
  
  <p>Daan</p>