-
-
Save jbrowning/9527280 to your computer and use it in GitHub Desktop.
# The $provide service is used to override an injected dependency | |
# Bad - results in Error: [ng:areq] Argument 'fn' is not a function, got Object | |
module 'someModule', ($provide) -> | |
$provide.value "SomeService", SomeMock | |
# Good | |
module 'someModule', ($provide) -> | |
$provide.value "SomeService", SomeMock | |
null |
+1 very helpful, thanks!
Just what I was looking for, thanks!
I just lost an hour on this, so dumb.
Thank you you just saved me so much headache.
Other way is to just put a return
instead of null
. Because return looks more meaningful and explains that it's an issue of coffeescript.
Thank you. This was driving me crazy.
Thx π
Thank you, this saved so much time!
Good work! π
M
Saved me as well!
+1 Great!!!
YEAH .. π― π
Thank you so much π
so much win for CoffeeScript
Thanks π
Thank you. It's very helpful!!
Thanks π
Another victim of coffeescript to add to the list!
Thanks!
π
You just saved me a ton of time, thanks!
Thank you! π
Cheers! π
Thank you!
holy shit this saved my day too thanks π
u really shouldnt use coffeescript just because of these implicit returns ..
tips hat
This gist is helpful, thanks!