title: Angular UI-Router: Nested state/view displays route but not template
body: <p>I'm currently using <code>Angular UI-Router 0.0.2</code> for routes/states in my angular app. In my app, I have both a <em>dashboard</em> and an <em>account</em> page - the dashboard displays app data; the account page displays user information.</p>
  
  <p>When I have the <code>dashboard</code> and <code>account</code> state as two independent states, the route will change and the account page will display.</p>
  
  <p><strong>This code works:</strong></p>
  
  <pre><code>routes = app.config ($stateProvider, $urlRouterProvider) -&gt;
  
  $urlRouterProvider.otherwise '/'
  
  $stateProvider.state( 'dashboard',
    url: '/'
    templateUrl: "app/views/dashboard/index.html"
    controller: 'DashboardIndexCtrl'
  ).state( 'account'
    url: '/account'
    templateUrl: "app/views/account/index.html"
    controller: 'AccountIndexCtrl'
  )
  </code></pre>
  
  <p>However, whenever I make the <code>account</code> state as a nested stated of <code>dashboard</code>, only a blank screen displays.</p>
  
  <p><strong>This code does not work:</strong></p>
  
  <pre><code>routes = app.config ($stateProvider, $urlRouterProvider) -&gt;
  
  $urlRouterProvider.otherwise '/'
  
  $stateProvider.state( 'dashboard',
    url: '/'
    templateUrl: "app/views/dashboard/index.html"
    controller: 'DashboardIndexCtrl'
  ).state( 'dashboard.account'
    url: 'account'
    templateUrl: "app/views/account/index.html"
    controller: 'AccountIndexCtrl'
  )
  </code></pre>
  
  <p>My <code>dashboard/index.html</code> file:</p>
  
  <pre><code>%section.row-fluid
    .span12
      / directive
      %loginform
  </code></pre>
  
  <p>My <code>loginform</code> directive's template:</p>
  
  <pre><code>loginFormCtrl = app.controller 'LoginFormCtrl', ($scope, $rootScope, $location, $state, $log, User, Session) -&gt;
  
    $rootScope.logged_in = false
  
    User.current().$promise.then (success) -&gt;
      $log.info success
      $rootScope.current_user = success.user
      $rootScope.logged_in = true if success.user.user_name != null
  </code></pre>