Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I guess I'm doing something wrong but I can't realise what. I'm just playing with a custom dashboard for the backend. My controller is this:
angular.module("umbraco").controller("test.controller", function ($scope, contentResource) { contentResource.getChildren(1065, { orderBy: "Name", //I tried with CreateDate and _umb_createdate and name orderDirection: "Descending", pageSize: 6, page: 0 }).then(function (data) { $scope.items= data.items; }); })
And doesn't matter what orderDirection I enter that always returns in Ascending order. Ideas? Thanks.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Order on contentResource.GetChildren wrong
I guess I'm doing something wrong but I can't realise what. I'm just playing with a custom dashboard for the backend. My controller is this:
And doesn't matter what orderDirection I enter that always returns in Ascending order. Ideas? Thanks.
is working on a reply...