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

  1. 20
  2. 19
  3. 18
  4. 17
  5. 16
  6. 15
  7. 14
  8. 13
  9. 12

the value 11 1 not displayed. please help. thanks!


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -