I'm doing a call to a REST service which returns true or false.
function topLevelClosed($stateParams) {
var id = $stateParams.id;
return id ? Traject.topLevelClosed({id: id}).$promise : false;
}
var topLevelClosed = {
method: 'GET',
url: trajectURL + ':id/topLevelClosed'
};
topLevelClosed is a $resource method. This works perfectly localhost. The topLevelClosed var is 'false', which is equal to the value returned by the REST call. However when deployed (to Google App Engine), I get the result "wrapped in a promise" as seen in the image below. However when I call the REST-service through the browserwindow, it returns false as it should.
Why won't this work when deployed?