title: Angularjs + Codeigniter user authentication
body: <p>I have an app that has a full angularjs frontend with a codeigniter backend (with this<a href="https://github.com/philsturgeon/codeigniter-restserver" rel="nofollow">https://github.com/philsturgeon/codeigniter-restserver</a>)</p>
  
  <p>I am using the codeigniter backend just to make api requests essentially.</p>
  
  <p>The problem I am having now is managing a navigation view based on whether or not a user is logged in.</p>
  
  <p>I have the navigation in its own navCtrl with a userService and loginCtrl.</p>
  
  <p>I am storing loggedIn true or false in a cookie with a $watch on it in the navCtrl so it will update the navigations appropriately.</p>
  
  <p>Any insight on why this may not be working? Any code i need to provide to clarify? Is there a "better" way to do this?</p>
  
  <p>EDIT: The $watch is not actually catching when I update the value using the userService.</p>
  
  <p>Thank you!</p>