title: AngularJS controller for main menu
body: <p>What is the best way to handle the functionality of html that is global to an application? Should I just put an ng-controller on the navigation element to handle the logout and login?</p>
  
  <pre><code>&lt;body&gt;
     &lt;div class="nav"&gt;&lt;/div&gt;
     &lt;div class="view-container" ng-view&gt;&lt;/div&gt;
  &lt;/body&gt;
  </code></pre>