Sha256: 0188aab492d18512fe9a7e1b47366525c6c30e93509766ae0f6433e36fd0da5d

Contents?: true

Size: 293 Bytes

Versions: 7

Compression:

Stored size: 293 Bytes

Contents

angular.module('services', [])

  .factory('relativePathToRoot', function($window) {
    return function() {
      var pathToRoot = $window.location.pathname.replace(/\/$/, '').split('/').slice(1).map(function() {
        return '../';
      }).join('');
      return pathToRoot;
    };
  });

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sculptor-0.0.9.3 lib/sculptor/templates/glyptotheque/source/assets/js/glyptotheque/services.js
sculptor-0.0.9.2 lib/sculptor/templates/glyptotheque/source/assets/js/glyptotheque/services.js
sculptor-0.0.9.1 lib/sculptor/templates/glyptotheque/source/assets/js/glyptotheque/services.js
sculptor-0.0.9 lib/sculptor/templates/glyptotheque/source/assets/js/glyptotheque/services.js
sculptor-0.0.8 lib/sculptor/templates/glyptotheque/source/assets/js/glyptotheque/services.js
sculptor-0.0.7 lib/sculptor/templates/glyptotheque/source/assets/js/glyptotheque/services.js
sculptor-0.0.6 lib/sculptor/templates/glyptotheque/source/assets/js/glyptotheque/services.js