title: Carousel "next" and "prev" function not work in single page application SPA
body: <p>I am using Bootstrap Carousel in SPA using this code. I am new with bootstrap</p>
  
  <pre><code>&lt;div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="false"&gt;
  &lt;!-- Indicators --&gt;
  &lt;ol class="carousel-indicators"&gt;
    &lt;li data-target="#myCarousel" data-slide-to="0" class="active"&gt;&lt;/li&gt;
    &lt;li data-target="#myCarousel" data-slide-to="1"&gt;&lt;/li&gt;
    &lt;li data-target="#myCarousel" data-slide-to="2"&gt;&lt;/li&gt;
    &lt;li data-target="#myCarousel" data-slide-to="3"&gt;&lt;/li&gt;
  &lt;/ol&gt;
  
  &lt;!-- Wrapper for slides --&gt;
  &lt;div class="carousel-inner" role="listbox"&gt;
    &lt;div class="item active"&gt;
    &lt;a href="#discription" role="image"&gt;
      &lt;img src="cloth5.jpg" alt="Loading..." width="100%" height="auto"&gt;
  &lt;/a&gt;
    &lt;/div&gt;
    &lt;div class="item"&gt;
      &lt;img src="cloth5.jpg" alt="Loading..." width="460" height="345"&gt;
    &lt;/div&gt;
  
    &lt;div class="item"&gt;
      &lt;img src="menjeans.jpg" alt="Loading..." width="460" height="345"&gt;
    &lt;/div&gt;
  
    &lt;div class="item"&gt;
      &lt;img src="menjeans.jpg" alt="Loading..." width="460" height="345"&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;!-- Left and right controls --&gt;
  &lt;a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev"&gt;
    &lt;span class="glyphicon glyphicon-chevron-left" aria-hidden="true"&gt;&lt;/span&gt;
    &lt;span class="sr-only"&gt;Previous&lt;/span&gt;
  &lt;/a&gt;
  &lt;a class="right carousel-control" href="#myCarousel" role="button" data-slide="next"&gt;
    &lt;span class="glyphicon glyphicon-chevron-right" aria-hidden="true"&gt;&lt;/span&gt;
    &lt;span class="sr-only"&gt;Next&lt;/span&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p></p>
  
  <p>But when I click on <code>Next</code> or <code>Prev</code> arrow buttons that find page <code>#myCarousel</code> rather shows next slide. Please help what I do.</p>