title: AngularJS ui-router not working
body: <p>I'm new to AngularJS and ui-router as well. I try to build an app following a pattern I have seen in a tutorial, but it doesn't seem to work. I inserted two <code>alert</code> statements but they don't run. </p>
  
  <p><code>projectlist.html</code> is not displayed either.</p>
  
  <p>No errors on JS console.</p>
  
  <p>What is the problem?</p>
  
  <p>JS:</p>
  
  <pre><code>var EntityEditorApp = angular.module('EntityEditorApp', ['ngResource', 'ui.router'])
      .config(function ($stateProvider, $urlRouterProvider) {
          $urlRouterProvider.otherwise('/');
  
          $stateProvider
              .state('/', {
                  url: '/api/Projects',
                  templateUrl: 'projectlist.html',
                  controller: 'ListCtrl'
              });
  
      });
  
  EntityEditorApp.factory('Project', function ($resource) {
      alert(1); // This does not run
      return $resource('/api/Project/:id', { id: '@id' }, { update: { method: 'PUT' } });
  });
  
  var ListCtrl = function ($scope) {
      alert(1); // This does not run
      $scope.projects = [];
      $scope.search = function () {
          Project.query(function (data) {
              $scope.projects = $scope.projects.concat(data);
          });
      };
  
      $scope.search();
  };
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html ng-app="EntityEditorApp" xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
      &lt;script src="Scripts/jquery-1.10.2.js"&gt;&lt;/script&gt;
      &lt;script src="Scripts/bootstrap.js"&gt;&lt;/script&gt;
      &lt;script src="Scripts/angular.js"&gt;&lt;/script&gt;
      &lt;script src="Scripts/angular-route.js"&gt;&lt;/script&gt;
      &lt;script src="Scripts/angular-resource.js"&gt;&lt;/script&gt;
      &lt;script src="Scripts/AngularUI/ui-router.js"&gt;&lt;/script&gt;
      &lt;script src="Scripts/app/entityeditor.js"&gt;&lt;/script&gt;
      &lt;link href="Content/bootstrap.css" rel="stylesheet" /&gt;
      &lt;title&gt;AngularJS Tutorial Todo App&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class="container"&gt;
          &lt;div ng-view&gt;&lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>