odin-default-js-exercises/node_modules/sprintf-js/src/angular-sprintf.js

19 lines
490 B
JavaScript
Raw Normal View History

2017-12-15 18:56:14 +00:00
angular.
module("sprintf", []).
filter("sprintf", function() {
return function() {
return sprintf.apply(null, arguments)
}
}).
filter("fmt", ["$filter", function($filter) {
return $filter("sprintf")
}]).
filter("vsprintf", function() {
return function(format, argv) {
return vsprintf(format, argv)
}
}).
filter("vfmt", ["$filter", function($filter) {
return $filter("vsprintf")
}])