Initializing Vue data with AJAX

后端 未结 3 2094
日久生厌
日久生厌 2021-02-01 13:39

I\'m trying to populate a Vue with data from the JsonResult of an AJAX query. My Vue receives the data just fine when I encode it from my View Model, but not when I

3条回答
  •  轮回少年
    2021-02-01 14:26

    You can make the ajax call inside of the mounted function (“ready” in Vuejs 1.x).

    
    
    
    Item Year
    {{item.DisplayName}} {{item.Year}}

提交回复
热议问题