Vue2.0 iframe ref test

HTML

<script src="https://unpkg.com/[email protected]/dist/vue.js"></script>
<div id="app"></div>

CSS

iframe {
  width: 500px;
  height: 500px;
}

Babel + JSX

new Vue({
	el: '#app',
  data () {
  	return {
      src: 'https://google.it'
    }
  },
  template: `
  	<div>
      <iframe :src="src" ref="iframe"></iframe>
    	<div ref="anotherElement"></div>
		</div>
  `,
  mounted () {
    this.$nextTick(() => {
    	console.log('iframe', this.$refs)
    })
  }
})