desirae.js/components/version/interpolate-filter.js

10 lines
221 B
JavaScript
Raw Normal View History

2015-01-10 07:23:15 +00:00
'use strict';
angular.module('myApp.version.interpolate-filter', [])
.filter('interpolate', ['version', function(version) {
return function(text) {
return String(text).replace(/\%VERSION\%/mg, version);
};
}]);