<div id="app">
<h1>Change title</h1>
<label for="foo">
Define a big pink title this input:
</label>
<input type="text" v-model="title" id="foo" placeholder="Hello Worl11d!" />
<button @click="title='Yo!'">
Write "Yo!"
</button>
<button @click="title=null">
Reset
</button>
<hr/>
<h1>
Using Vue.compile
</h1>
<block-with-title :title="title">
Hey this is contents flowing from within, it is called a slot.
</block-with-title>
<hr/>
<h1>
Using raw render function
</h1>
<render-function-variant :title="title">
render-function-variant slot contents
</render-function-variant>
<hr/>
<h1>
Show "title" value through capitalize filter (`title|capitalize`)
</h1>
<span>{{title|capitalize}}</span>
<div>
<ul>
<li
v-for="(row, index) in rows"
:key="index"
>
<strong>{{row.name}}</strong>
<small>{{row.age}}</small>
</li>
</ul>
</div>
</div>