Ember model reloading in interval

前端 未结 3 1465
无人共我
无人共我 2021-02-13 07:28

I have a User model, which has latitude and longitude properties, which are used to show current user location on map.

App.User = DS.Model.extend({
    firstName         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-13 08:06

    The model has a .reload() method now, which you could use in a setInterval callback. See https://stackoverflow.com/a/14183507/363073

    P.S. Watch #545.

提交回复
热议问题