title: Angular ui-router state is not loaded
body: <p>Hi I have started to learn angular for a couple of days now and I gotta say it has been a bumpy road.I'm not new to SPA apps I have been working for the past year on a project that used Durandal.</p>
  
  <p>In two days I will have to start working on a project that will use angular and angular-ui-router.</p>
  
  <p>For some reason I can not seem to be able to configure not even the most simplest examples  found on angular-ui-router docs : <a href="https://github.com/angular-ui/ui-router/wiki" rel="nofollow noreferrer">https://github.com/angular-ui/ui-router/wiki</a></p>
  
  <p>As of now I have the following code:</p>
  
  <p>This is my javascript code:</p>
  
  <pre><code>&lt;script&gt;
     var codeArtApp = angular.module("codeArtApp", ['ui.router']);
  
     codeArtApp.controller('MyCtrl', function($state){
         $state.go('contacts')
  
     });
  
     codeArtApp.config(function($stateProvider){
          $stateProvider.state('contacts', {
              template: '&lt;h1&gt;{{title}}&lt;/h1&gt;',
              resolve: { title: 'My Contacts' },
              controller: function($scope, title){
                  $scope.title = 'My Contacts';
              },
              onEnter: function(title){
                  console.log(title)
              },
              onExit: function(title){
                  if(title){
  
                  }
              }
          })
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>This is my html:</p>
  
  <pre><code>&lt;body ng-app="codeArtApp"&gt;
  &lt;div ng-controller="MyCtrl"&gt;
      &lt;section ui-view&gt;&lt;/section&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>When I run the app $state.go('contacts') gets executed but I am not being sent to contacts state and the html is not loaded.</p>
  
  <p>If I try to load the state threw the browser url /#/contacts still nothing happens.</p>
  
  <p>What am I doing wrong?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have also binded the $stateChangeError event and I see I am getting a stack trace:</p>
  
  <p><img src="https://i.stack.imgur.com/TJy1R.png" alt="enter image description here"></p>
  
  <p>It seems it is trying to resolve "My ContactsProvider" but I named the state contacts what is going on here?</p>