title: Unable to access $state custom properties in $locationChangeStart with next and prev arguments
body: <blockquote>
    <p>What i am trying to do</p>
  </blockquote>
  
  <p>As mentioned in questions title, i want to check authorization and authentication of next routes so i have made custom properties on routes and trying to access them in $locationChageStart.</p>
  
  <blockquote>
    <p>Problem i am facing is</p>
  </blockquote>
  
  <p>the <code>event</code> , <code>next</code> , <code>prev/current</code> arguments are correct but custom properties are returning undefined </p>
  
  <p><strong>My code</strong></p>
  
  <pre><code>myModule.run(function($rootScope,authService,$state){
  
          $rootScope.$on("$locationChangeStart",function(e,next,prev){
  
              console.log(e+","+next+","+prev);  //correct
              console.log(next.reqAuthentication); // returning undefined
              console.log(prev.reqAuthentication); // returning undefined
          });
      })
  </code></pre>
  
  <p>and in Config routes are like</p>
  
  <pre><code>           .state('profile.company', {
              url: "/company",
              templateUrl: 'partials/companyprofile.html',
              controller: 'adminCtrl',
              reqAuthentication:true,
              authenticateRole:['a','b',"c"]
  
          })
          .state('profile.messages', {
              url: "/messages",
              templateUrl: 'partials/chat.html',
              controller: 'adminCtrl',
              reqAuthentication:true,
              authenticateRole:['a','b',"b"]
              })
  </code></pre>
  
  <p><strong>Note:</strong> I am using ui routes so i think there is some problem i am mixing it up with ngRoute</p>