inyectar jQuery y subrayar al componente angular js
Estoy usando angularjs, subrayado y jQuery en mi nuevo servicio:
myModule.factory('MyService', ['MyResource', function (MyResource) {
....
// Here I make use of _ and $
}]);
¿Cómo puedo inyectar guiones bajos o jQuery en el nuevo servicio para estar seguro de que _ es un guión bajo y $ es jquery?
Estoy buscando algo como:
myModule.factory('MyService', [ 'underscore', 'jquery','MyResource', function (_, $, MyResource) {
....
// Here I want to use $ and _ and be SURE that _ is underscore and $ is jquery
}]);