title: Load controllers on demand in SPA - AngularJS
body: <p>I am new to the whole SPA thing, but i interested of develop one.
  All the tutorials on the web has 2 controllers that are included inside the main page.
  My question is what is the best practice to load the controllers on demand, 
  for example, if i have 5 pages (called partials in SPA world), each one of them has different logic. so i will have 5 controllers, one for each page. I don't think that load all the 5 controllers in the main page is the good method, so how can i load angularJS controller on demand? and how can i unload the controller that was used in the previous "pages"?</p>
  
  <p>if someone has a good tutorial for spa with angular that has more than 2-3 controllers, i will be happy for a link.</p>