title: AngularJS ui-router login authentication
body: <p>I am new to AngularJS, and I am a little confused of how I can use angular-"ui-router" in the following scenario:</p>
  
  <p>I am building a web application which consists of two sections. The first section is the homepage with its login and signup views, and the second section is the dashboard (after successful login).</p>
  
  <p>I have created an <code>index.html</code> for the home section with its angular app and <code>ui-router</code> config to handle <code>/login</code> and <code>/signup</code> views,
  and there is another file <code>dashboard.html</code> for the dashboard section with its app and <code>ui-router</code> config to handle many sub views.</p>
  
  <p>Now I finished the dashboard section and don't know how to combine the two sections with their different angular apps. How could I tell the home app to redirect to the dashboard app?</p>