title: Navigating between <div> elements of same page using AngularJS with Bootstrap
body: <p>I am using bootstrap and angular js to develope a single page application.</p>
  
  <p>I have the page like,</p>
  
  <pre><code>                First | Second
  </code></pre>
  
  <p>My code goes like this,</p>
  
  <pre><code>&lt;div class="container"&gt;
  &lt;div class="navbar"&gt;
                &lt;div class="navbar-inner"&gt;               
                    &lt;ul class="nav"&gt;
                      &lt;li class="active"&gt;&lt;a href="#first"&gt;First&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#second"&gt;Second&lt;/a&gt;&lt;/li&gt;
  
                     &lt;/ul&gt;
  
                &lt;/div&gt;
              &lt;/div&gt;
              &lt;div id="first"&gt;this is first page&lt;/div&gt;
              &lt;div id="second"&gt;this is second page&lt;/div&gt;                  
              &lt;/div&gt;
  </code></pre>
  
  <p>But when I navigate through the buttons both HTML elements are getting displayed</p>
  
  <pre><code>&lt;div id="first"&gt;this is first page&lt;/div&gt;
                  &lt;div id="second"&gt;this is second page&lt;/div&gt;
  </code></pre>
  
  <p>How to navigate properly.</p>
  
  <p>Please Advice</p>