Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

apputils.business.js 910B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * Created by robin on 12/15/16.
  3. */
  4. (function () {
  5. 'use strict';
  6. angular.module('appSdk')
  7. .factory('AppUtilsBusiness', ['$rootScope', function($rootScope) {
  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. AppUtilsBusiness.setTitle = function(title)
  20. {
  21. $rootScope.title = title + ' - MyApp';
  22. };
  23. AppUtilsBusiness.setToolbarTitle = function(title)
  24. {
  25. $rootScope.$emit('toolbar.title', {title: title});
  26. };
  27. return AppUtilsBusiness;
  28. }]);
  29. })();