You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
490 B
18 lines
490 B
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")
|
|
}])
|
|
|