title: Ui router AngularJs Nested states and Nested views correct way
body: <p><strong>here's the repo:</strong> <a href="https://github.com/vipul-verma/LetsLearnAngular" rel="nofollow">https://github.com/vipul-verma/LetsLearnAngular</a></p>
  
  <p><strong>here's the live view:</strong> <a href="https://rawgit.com/vipul-verma/LetsLearnAngular/master/index.html" rel="nofollow">https://rawgit.com/vipul-verma/LetsLearnAngular/master/index.html</a></p>
  
  <p><strong>Explanation:</strong>
  A basic template.</p>
  
  <p>Home link will load the <strong>partials/home.html</strong>.</p>
  
  <p>About link will load the <strong>partials/about.html</strong> and <strong>partials/about-sublevel.html.</strong></p>
  
  <p><strong>Problem:</strong></p>
  
  <p>Here <strong>partials/about-sublevel.html</strong> is a sub level of about page so it can be said its a part of about page or <strong>nested view/state</strong> of about page. But if you see the index page it has two views <strong>'viewA'</strong> , <strong>'viewB'</strong>. </p>
  
  <p><strong>'viewA'</strong> loads <strong>partials/home.html</strong> or <strong>partials/about.html</strong> according to link. </p>
  
  <p><strong>'viewB'</strong> loads only when About link is clicked with <strong>partials/about-sublevel.html.</strong></p>
  
  <p><strong>Question:</strong></p>
  
  <p>Is there a way to separate the  <strong>partials/about-sublevel.html</strong> page from <strong>index page</strong> and <strong>load inside about.html</strong> so I don't have to put the tag in <strong>index page</strong> as <strong><code>&lt;div ui-view="viewB"&gt;&lt;/div&gt;</code></strong>.</p>
  
  <p><strong>Correct way</strong> 
  'viewB' should <strong>load inside about.html</strong> since its a part of about page and when i click on about link both <strong>partials/about.html</strong> and <strong>partials/about-sublevel.html</strong> are displayed by default. </p>
  
  <p>What is the correct way, Best practice in this scenario.  What will be done in <strong>app.js</strong> to achieve this. Please give answer using the above git repo only and please. please don't give dummy answers without using the code from repo. Thank you</p>