Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

How should you do changeData on $interval for 0.5.1? #528

@hilhorst

Description

@hilhorst

I set up my controller to get dtInstance through the two-way data binding as described in the v0.4.3 release notes. When I add the following statement to the controller function (to do an automatic update of the table contents every 5 seconds) you see the "Loading..." message instead of the current contents of the table, and half of the time the vm.dtInstance object is logged as Object {}.

    $interval(function(){
            console.log(vm.dtInstance);
            if (typeof vm.dtInstance.changeData === 'function') vm.dtInstance.changeData( myPromise );
     }, 5000);

What would be the proper way to automatically update the contents of the table? Is this still possible in 0.5.1?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions