title: Yeoman Angular Fullstack - how to secure routes?
body: <p>I have created a new route 'Rooms' with the generator and have modelled my $stateProvider on the admin route</p>
  
  <pre><code>.state('admin', {
      url: '/admin',
      templateUrl: 'app/admin/admin.html',
      controller: 'AdminController',
      controllerAs: 'admin',
      authenticate: 'admin'
    });
  </code></pre>
  
  <p>Vs</p>
  
  <pre><code>$stateProvider
    .state('rooms', {
      url: '/rooms',
      templateUrl: 'app/rooms/rooms.html',
      controller: 'RoomsCtrl',
      controllerAs: 'rooms',
      authenticate: 'admin'
    });
  </code></pre>
  
  <p>But my route still appears without authentication! </p>
  
  <p>I guess I am missing a few things to make it secure, though I am unable to understand what! </p>
  
  <p>Can anyone help? </p>
  
  <p>Thanks</p>