title: ui-sref or $state.go not working on first directive
body: <p>I have an ng-repeat on a directive where I'm passing in 3 pieces of information. The directive has a button where I pass that information on to another view using params as such: </p>
  
  <pre><code>ui-sref='profiles.show({userId:profile._id, index:index, list:list})
  </code></pre>
  
  <p>The problem I have is that the buttons for all of the cards (the cards are the directives) worked properly, except for the one at index 0. The button won't perform a <code>ui-sref</code> or a <code>$state.go</code>. I tried having it with an ng-click and console logging all the params and the console log works displaying the correct data, but the <code>$state.go</code> with the params is not triggering.</p>
  
  <pre><code>$state.go('profiles.show', {userId: profile._id, index: index, list: list})
  </code></pre>
  
  <p>Also, if I remove the index and the list from the params, the ui-sref or $state.go for the first element works again, but in the next view I don't get the necessary information anymore.</p>
  
  <p>Here is the state config for <code>profiles.show</code></p>
  
  <pre><code>.state('profiles.show', {url: '/{userId}', params: { index: null, list: null }, templateUrl:'/views/profiles/show/show.html', controller: 'ProfilesShowController'})
  </code></pre>
  
  <p>And here is the ng-repeat (I'm using Jade):</p>
  
  <pre><code>.text-capitalize(al-card, ng-repeat='profile in profiles | filter:searchBar track by $index', profile='profile', index='$index', list='profiles')
  </code></pre>
  
  <p>This is the button with the <code>ng-click</code></p>
  
  <pre><code>button.btn.btn-default(ng-click='goToProfile(profile, index, list)') Learn More
  </code></pre>
  
  <p>And the $scope function: </p>
  
  <pre><code>$scope.goToProfile = function(profile, index, list) {
    console.log(profile);
    console.log(index);
    console.log(list);
    $state.go('profiles.show', {userId: profile._id, index: index, list: list});
  };
  </code></pre>
  
  <p>Any help with this?</p>