noeticpenguin/ngForce — pull request #16 by chasd00 (2014-06-25 20:13:47+00:00)
Title: $q is undefined in ngForce-visualForceRemoting.js

Injection should be done in $get for providers. Also, small fix to keep jshint from complaining.

Move the injection of $q and $rootScope to the $get method since this is a provider. Defined handleResultWithPromise as "function handleResultWithPromise" so hoisting will handle resolving the function call in vfRemote.send().