Angular.js internal injector for function injection