title: Conditional partials in Angular.js
body: <p>Angular novice here. I'm trying to wrap my head around the right way to accomplish a basic template issue.</p>
  
  <p>I have a header, which should read “click here to log in” when the user is not logged in, and “Welcome, Dudefellah” (and associated Settings links and whatnot) when a user is logged in.</p>
  
  <p>I've written a Service that is able to return a JSON bundle including a login state and username, but I don't know what “The Angular Way” to express: “if(auth.loggedin), output partials/header.html; else output partials/header_login.html”.</p>
  
  <p>I’m unclear as to whether this logic would belong in the controller, or some kind of “auth” model, or even in the view (that can't be right, right?). Any assistance would be greatly appreciated.</p>