문제

I'm using AngularJS in a simple prototype app that uses Domino server on the back end.

When I do a seemingly simple call like this:

$http({ url: $scope.hrEventsPath, 
        method : "GET", 
        params : { 'readform' : '',
                   'eventid' : $scope.queryStringPairs.eventid,
                   'userid' : $scope.queryStringPairs.userid,
                   'login' : $scope.queryStringPairs.login } }).
            success(function(data, status) {
                // happy stuff
            }).
            error(function(data, status) {
                // error handling stuff
            });

It seems that Angular puts all the params in alphabetical order when the call is made.

Therefore, the readform parameter is not the first parameter, eventid is, and the Domino server chokes. (This happens whether or not 'readform' has a value)

Regardless of Domino and its configuration, is there a way to for a sort the order in Angularm or should one use another approach?

Thanks in advance.

도움이 되었습니까?

해결책

Use an array of single objects, then the object won't have a chance to switch itself around.

[ {}, {}, {} ]
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top