title: Owl Carousel is not working in Angular 4
body: <p>I am working on angular 4 and I want to implement owl carousel in my application. I imported owl carousel in the application refer by this link <a href="https://www.npmjs.com/package/ng2-owl-carousel" rel="nofollow noreferrer">https://www.npmjs.com/package/ng2-owl-carousel</a>.</p>
  
  <p>But images is not coming. 
  I am sharing in my code:</p>
  
  <p><strong>home.component.ts</strong></p>
  
  <pre><code>import { Component } from '@angular/core';
  import {Http} from '@angular/http';
  import {OwlCarousel} from 'ng2-owl-carousel';
  import { ViewChild } from '@angular/core'
  declare var $:any;
  @Component({
      moduleId:module.id,
      templateUrl:'home.component.html'
  })
  
  export class HomeComponent{
      public pageTitle:string ='Home';
      @ViewChild('owlElement') owlElement: OwlCarousel       
  
        fun() {
          this.owlElement.next([200])
          //duration 200ms
        }
        object = {          
          link: "http://lorempixel.com/100/100"
        }
  
  }
  </code></pre>
  
  <p><strong>home.component.html</strong></p>
  
  <pre><code>&lt;owl-carousel
  [options]="{items: 3, dots: false, navigation: false}"
  
  [items]="images"
  
  [carouselClasses]="['owl-theme', 'row', 'sliding']"&gt;
  &lt;div class="item" *ngFor="let image of images;let i = index"&gt;
      &lt;div class="thumbnail-image" [ng-style]="{'background-image':'url(/assets/img/images.jpg)'}"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;/owl-carousel&gt;
  </code></pre>
  
  <p><strong>app.module.ts</strong></p>
  
  <pre><code>imports: [
      BrowserModule,
      HttpModule,
      FormsModule,
      OwlModule
  ]
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/uMD4W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uMD4W.png" alt="enter image description here"></a>
  Only next or prev is coming but Image is not coming. I am new in angular 4. So I am not able to solve this problem. I have seen links But Still I am not able to solve.</p>
  
  <p><a href="https://stackoverflow.com/questions/17252546/angularjs-ng-style-background-image-isnt-working">angularjs ng-style: background-image isn&#39;t working</a><br>
  <a href="https://stackoverflow.com/questions/37491166/angular-2-background-image-into-a-html-file-using-ngstyle">Angular 2 - background image into a html file using ngStyle</a></p>