title: Controller being called twice in Ionic (AngularJS)
body: <p>In my angular project the user accepts a EULA then get automatically redirected to their dashboard, however, on this redirect the DashboardController seems to be being called twice, the DashboardController is being called on the route itself, I have checked to see if I have accidently called it again in the template but I havn't. Below is my route &amp; controller. It doesn't appear to matter if I access the URL directly or via the redirect on the EULA controller, I get the same result. </p>
  
  <p><strong>The routes</strong></p>
  
  <pre><code>.config(function($httpProvider, $stateProvider, $urlRouterProvider) {
  
      $httpProvider.interceptors.push('httpRequestInterceptor');
  
      $urlRouterProvider.otherwise('/');
  
      $stateProvider
  
      .state('login', {
          url: '/',
          templateUrl: 'templates/login.html',
          data: {
              requireLogin: false
          }
      })
      .state('eula', {
          url: '/eula',
          templateUrl: 'templates/eula.html',
          data: {
              requireLogin: true
          }
      })
      .state('dashboard', {
          url: '/groups',
          templateUrl: 'templates/dashboard.html',
          data: {
              requireLogin: true
          }
      })
  });
  </code></pre>
  
  <p><strong>The controller:</strong></p>
  
  <pre><code>App.controller('DashboardController', ['$scope', 'RequestService', '$state', '$rootScope', function($scope, RequestService, $state, $rootScope){
  
  alert('test');
  
  }]);
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p><strong>ADDED MY HTML AS PER COMMENTS</strong></p>
  
  <p><strong>index.html</strong></p>
  
  <pre><code>&lt;body ng-app="App"&gt;
  
  &lt;ion-nav-bar class="bar-positive nav-title-slide-ios7" align-title="center"&gt;
          &lt;ion-nav-back-button class="button-icon ion-arrow-left-c"&gt;&lt;/ion-nav-back-button&gt;
      &lt;/ion-nav-bar&gt;
      &lt;ion-nav-view class="slide-left-right"&gt;&lt;/ion-nav-view&gt;
      &lt;ui-view&gt;&lt;/ui-view&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p><strong>dashboard.html</strong></p>
  
  <pre><code>&lt;div class="groups" ng-controller="DashboardController"&gt;
      &lt;ion-view title="App"&gt;
  
          &lt;ion-nav-buttons side="right"&gt;
              &lt;a ui-sref="groupcreate"&gt;&lt;span class="icon ion-ios-plus-outline"&gt;&lt;/span&gt;&lt;/a&gt;
          &lt;/ion-nav-buttons&gt;
  
          &lt;ion-content class="padding"&gt;
              &lt;div class="row"&gt;
                  &lt;div class="col-50"  ng-repeat="group in groups"&gt;
                      {{ group }} 1
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/ion-content&gt;
      &lt;/ion-view&gt;
  &lt;/div&gt;
  </code></pre>