April 2017
Intermediate to advanced
454 pages
12h 51m
English
<ul> <li v-for="n in [10,9,8,7,6,5,4,3,2,1]">{{n}}</li> <li>launch missile!</li> </ul>
Although this list is identical to the previous one, we shouldn't put literal arrays in HTML markup.
<ul> <li v-for="n in countdown">{{n}}</li> <li>launch missile!</li> </ul>
new Vue({ el:'#app', data: { countdown: [10,9,8,7,6,5,4,3,2,1] } })

Read now
Unlock full access