title: Angular could not resolve from state
body: <p>I used jhipster to generate my app and I tried to add two different types of forms, that would both use same entity (one wouldn't use all fields in entity and other would use all).</p>
  
  <p>Now, it works alright for:</p>
  
  <pre><code>    .state('xyz', {
          parent: 'entity',
          url: '/xyz',
          data: {
              authorities: ['ROLE_USER'],
              pageTitle: 'xyzs'
          },
          views: {
              'content@': {
                  templateUrl: 'app/entities/xyz/xyzs.html',
                  controller: 'XyzController',
                  controllerAs: 'vm'
              }
          },
          resolve: {
          }
      }).state('xyz.new', {
          parent: 'xyz',
          url: '/new',
          data: {
              authorities: ['ROLE_USER']
          },
          onEnter: ['$stateParams', '$state', '$uibModal', function($stateParams, $state, $uibModal) {
              $uibModal.open({
                  templateUrl: 'app/entities/xyz/xyz-dialog.html',
                  controller: 'XyzDialogController',
                  controllerAs: 'vm',
                  backdrop: 'static',
                  size: 'lg',
                  resolve: {
                      entity: function () {
                          return {
                              ...
                          };
                      }
                  }
              }).result.then(function() {
                  $state.go('xyz', null, { reload: true });
              }, function() {
                  $state.go('xyz');
              });
          }]
      })
  </code></pre>
  
  <p>And it works alright, but if I change it a small bit and use:</p>
  
  <pre><code>    .state('xyz', {
          parent: 'entity',
          url: '/xyz',
          data: {
              authorities: ['ROLE_USER'],
              pageTitle: 'xyzs'
          },
          views: {
              'content@': {
                  templateUrl: 'app/entities/xyz/xyzs.html',
                  controller: 'XyzController',
                  controllerAs: 'vm'
              }
          },
          resolve: {
          }
      }).state('a-xyz.new', {
          parent: 'xyz',
          url: '/a/new',
          data: {
              authorities: ['ROLE_USER']
          },
          onEnter: ['$stateParams', '$state', '$uibModal', function($stateParams, $state, $uibModal) {
              $uibModal.open({
                  templateUrl: 'app/entities/xyz/a-xyz-dialog.html',
                  controller: 'XyzDialogController',
                  controllerAs: 'vm',
                  backdrop: 'static',
                  size: 'lg',
                  resolve: {
                      entity: function () {
                          return {
                              ...
                          };
                      }
                  }
              }).result.then(function() {
                  $state.go('xyz', null, { reload: true });
              }, function() {
                  $state.go('xyz');
              });
          }]
      })
  </code></pre>
  
  <p>And I've change my 
  <code>ui-sref="xyz.new"</code>
  to
  <code>ui-sref="a-xyz.new"</code>
  in my html template</p>
  
  <p>I'm getting an error:</p>
  
  <pre><code>Error: Could not resolve 'a-xyz.new' from state 'xyz'
  transitionTo@http://localhost:9000/bower_components/angular-ui-router/release/angular-ui-router.js:3180:17
  go@http://localhost:9000/bower_components/angular-ui-router/release/angular-ui-router.js:3108:14
  clickHook/&lt;/transition&lt;@http://localhost:9000/bower_components/angular-ui-router/release/angular-ui-router.js:4158:9
  timeout/timeoutId&lt;@http://localhost:9000/bower_components/angular/angular.js:19157:28
  completeOutstandingRequest@http://localhost:9000/bower_components/angular/angular.js:5869:7
  Browser/self.defer/timeoutId&lt;@http://localhost:9000/bower_components/angular/angular.js:6145:7
  </code></pre>