title: Angularjs Master Detail with $stateProvider does not work
body: <p>I have tried what was helped in:
  <a href="https://stackoverflow.com/questions/23963247/ui-router-load-detail-page-from-a-list-page">UI Router load detail page from a list page</a></p>
  
  <p>and I encountered a problem as the code I implemented was different overall.</p>
  
  <p>Here I have the config.js:</p>
  
  <pre><code>.state('app.projects', {
          url: "/projects",
          templateUrl: "views/projects.html",
          data: { pageTitle: 'Projects' },
          controller: 'ProjectCtrl'
      })
  .state('app.project_detail', {
          url: "/project_detail",
          view: {
              'project_detail':{
              templateUrl: 'views/project_detail.html',
              controller: 'ProjectDetailCtrl'
              }
          },
          data: { pageTitle: 'Project detail' }
      })
  </code></pre>
  
  <p>and I have the project (MASTER) html:</p>
  
  <pre><code>&lt;td class="project-actions"&gt;
      &lt;a ui-sref="app.project_detail/({project_id:1})" class="btn btn-white btn-sm"&gt;&lt;i class="fa fa-folder"&gt;&lt;/i&gt; View &lt;/a&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>and the project_detail (DETAIL)</p>
  
  <pre><code>&lt;h2&gt; {{project_data.project_id}}&lt;/h2&gt;
  </code></pre>
  
  <p>and finally the controller.js:</p>
  
  <pre><code>function ProjectCtrl($scope, $http, $timeout, $state, $stateParams) {
  
  $http.get('../crud/projects_read.php').then(function(response){
      $scope.projects = response.data;
  });
  
  };
  
  function ProjectDetailCtrl($scope, $http, $timeout, $state, $stateParams) {
  
      $scope.project_data = $scope.projects[$stateParams.project_id]
  
  };
  </code></pre>
  
  <p>I think I have all set in proper manner, but
  the UI-SREF does not work and I think the data does not seem to be passed from the Project --> Project Detail in the controller.js file.</p>
  
  <p>Could anyone help me? I am stuck and have been trying almost whole day with different examples (can't even count!).</p>
  
  <p>Thank you in advance!</p>