title: Could not resolve '...' from state ''
body: <p>This is first time i am trying to use ui-router.</p>
  
  <p>Here is my app.js</p>
  
  <pre><code>angular.module('myApp', ['ionic'])
  
  .run(function($ionicPlatform) {
    $ionicPlatform.ready(function() {
      // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
      // for form inputs)
      if(window.cordova &amp;&amp; window.cordova.plugins.Keyboard) {
        cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
      }
      if(window.StatusBar) {
        StatusBar.styleDefault();
      }
    });
  })
  
  .config(function($stateProvider, $urlRouterProvider){
    $urlRouterProvider.otherwise("/index.html");
  
    $stateProvider.state('index', {
      url: '/'
      template: "index.html",
      controller: 'loginCtrl'
    });
  
  
    $stateProvider.state('register', {
      url: "/register"
      template: "register.html",
      controller: 'registerCtrl'
    });
  })
  </code></pre>
  
  <p>As you can see, i have two states. I'm trying to register state like this:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;a ui-sref="register"&gt;
    &lt;button class="button button-balanced"&gt;
      Create an account
    &lt;/button&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>But i am getting </p>
  
  <blockquote>
    <p>Could not resolve 'register' from state ''</p>
  </blockquote>
  
  <p>exception. What is the problem here?</p>