I have some functions that I will probably reuse. One is a small date function that prepares a string from mm/dd/yyyy to dd/mm/yyy.
Another will take a HTML data-attribute="4" and will show 4 stars. So whenever i need these functions I can inject them. My question is....Should I make them all small factory.js files like year.js and stars.js or should I make one function file and put the function into there and inject the functions.js file when needed? All these will need to be loaded within the $scope at some point but I would like to know what the best practice is? -- 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/d/optout.
