You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

apputils.business.js 586B

1234567891011121314151617181920212223242526
  1. /**
  2. * Created by robin on 12/15/16.
  3. */
  4. (function () {
  5. 'use strict';
  6. angular.module('appSdk')
  7. .factory('AppUtilsBusiness', [function () {
  8. var AppUtilsBusiness = {};
  9. AppUtilsBusiness.convertOrderBy = function(orderBy)
  10. {
  11. if (orderBy[0] == '-') {
  12. orderBy = orderBy.substr(1) + ":DESC";
  13. }
  14. else {
  15. orderBy = orderBy + ":ASC";
  16. }
  17. return orderBy;
  18. };
  19. return AppUtilsBusiness;
  20. }]);
  21. })();