title: ngb-carousel changing starting slide
body: <p>I am using Angular 5 and <code>ngb-carousel</code>. The carousel has 3 slides on the template, each one with a different id. I would like to set the starting slide based on data that is passed to the component hosting the slide.</p>
  
  <p>The problem I am running into is that if I used <code>@ViewChild</code> to get a reference to the carousel it is undefined on the <code>ngOnOnit</code> hook, so I cannot do anything there. It is "not" undefined in the <code>ngAfterViewInit</code> hook, so I can call the <code>select()</code> function to change the slide, but then I run into the "Expression has changed after it was checked." error. In summary, <code>@ViewChild</code> does not return carousel at the time of <code>ngOnInit</code>, and if I change the slide viewed during <code>ngAfterViewInit</code> I get the change error.</p>
  
  <p>Is there a better approach to set the starting slide for ngb-carousel based on data passed to the component?</p>