title: How to watch prop change in Vue.js component?
body: <p>I'm passing an array of image filepaths to a component.
  I'm wondering what would be the best way to watch a prop change in Vue.js component, if I pass a different array?</p>
  
  <p>I'm using bootstrap carousel, so wanna reset it to first image when array changes.
  In order for simplicity I reduced code example to this:</p>
  
  <pre><code>Vue.component('my-images', {
    props: ['images'],
  
    template: `
      &lt;section&gt;
        &lt;div v-for="(image, index) in images"&gt;
          {{index}} - &lt;img :src="image"/&gt;
        &lt;/div&gt;
      &lt;/section&gt;
    `
  });
  </code></pre>