jQWidgets Forums

jQuery UI Widgets Forums Plugins Data Adapter dataType for Angular $resource

This topic contains 1 reply, has 1 voice, and was last updated by  aigleborgne 11 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • dataType for Angular $resource #48372

    aigleborgne
    Participant

    Hello,

    I’m mixing jqxDataTable with Angular but I can’t make a simple example.
    As far as I know, I must use a data adapter as for datatable source. But it doesn’t produce anything in my table.
    If I replace my $resource result by a simple array, it works.
    $resource produces an array, but it is more than that and is typed as Object, which may be the cause of the problem.

    Note that my result is resolved before controller is created as I am using ui-router. So my array is not empty when creating dataTable.

    I have tried all relevant dataType (array, json, local), but none worked.

    In the worst scenarii (component can’t work with $resource), I could write a converter $resource -> array.

    dataType for Angular $resource #48374

    aigleborgne
    Participant

    My mistake, promise was not resolved at the time beeing. So much refactoring on my code I thought it was !
    Now it is resolved, it worked perfectly 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.