title: carouselExampleIndicators Error in angular 4
body: <p>I have crated carousel in my page by using following code</p>
  
  <pre><code>&lt;div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel"&gt;
      &lt;ol class="carousel-indicators"&gt;
          &lt;li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"&gt;&lt;/li&gt;
          &lt;li data-target="#carouselExampleIndicators" data-slide-to="1"&gt;&lt;/li&gt;
          &lt;li data-target="#carouselExampleIndicators" data-slide-to="2"&gt;&lt;/li&gt;
      &lt;/ol&gt;
      &lt;div class="carousel-inner"&gt;
          &lt;div class="carousel-item active"&gt;
              &lt;img class="d-block w-100" src="https://d1.awsstatic.com/webteam/homepage/heroes/videos/Site-Merch_reInvent-Keynote_Hero-Video-Poster.00baa02675e98818eec00a087f6ea87aecedfada.jpg"
                  alt="first slide"&gt;
          &lt;/div&gt;
          &lt;div class="carousel-item"&gt;
              &lt;img class="d-block w-100" src="https://d1.awsstatic.com/webteam/homepage/heroes/overlay-art/Site-Merch_PAC-SageMaker_Hero-Art.8aef321eaf4ab9bd490ff66a1cd8981b889373d0.png"
                  alt="Second slide"&gt;
          &lt;/div&gt;
          &lt;div class="carousel-item"&gt;
              &lt;img class="d-block w-100" src="https://d1.awsstatic.com/webteam/homepage/heroes/overlay-art/Site-Merch_What-is-AWS_Hero-Art.d92a5ae5daf0c0735f49b06814bee7a07742ba20.png"
                  alt="Third slide"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev"&gt;
          &lt;span class="carousel-control-prev-icon" aria-hidden="true"&gt;&lt;/span&gt;
          &lt;span class="sr-only"&gt;Previous&lt;/span&gt;
      &lt;/a&gt;
      &lt;a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next"&gt;
          &lt;span class="carousel-control-next-icon" aria-hidden="true"&gt;&lt;/span&gt;
          &lt;span class="sr-only"&gt;Next&lt;/span&gt;
      &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>by using following <a href="https://getbootstrap.com/docs/4.0/components/carousel/" rel="nofollow noreferrer">Link</a>.
  But in the page images are showing but it is not <code>scrolling auto</code> and if try to to click on arrows it is showing error in the console </p>
  
  <blockquote>
    <p>ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'carouselExampleIndicators'
    Error: Cannot match any routes. URL Segment: 'carouselExampleIndicators'</p>
  </blockquote>
  
  <p>I checked <code>bootstrap version</code> that is <code>v4</code></p>
  
  <p>I don't know whats going wring the code. could any one please let me and what it causing error</p>