Hi Antoine,
Sure there is. I use a trick to put in small util functions inside angular.
You know the special small things you never know where to put..
In most of my applications I have a module utils, that looks something like:
```
var util = {};
angular.module('util', []).
value('util', util);
util.sometool = function (string) {
//do something
return string;
};
```
Of course this is inside a IFFE.
There are a number of variant possible to this, but it should get you going!
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.