8 lines
199 B
JavaScript
8 lines
199 B
JavaScript
// returns the relative path from base
|
|
app.filter('prelative', function() {
|
|
return function(path, base) {
|
|
return path.replace(/\\/g, '/')
|
|
.replace(base.replace(/\\/, '/'), '.');
|
|
};
|
|
});
|