javascript - Vue.js displays a few items only when using array push -
i using vue.js in codeigniter. trying push array, displays 10 items. in console looks okay, gives me error in view.
here code
//vuejs.js this.approval_enddate = []; (var = 20; >= 0; i--) { this.approval_enddate.push(i); } //view.php <ol> <li v-repeat="sem: approval_enddate">{{ sem }}</li> </ol>
but here output
- 20
- 19
- 18
- 17
- 16
- 15
- 14
- 13
- 12
the value 11 1 not displayed. please help. thanks!
Comments
Post a Comment