Last active
April 25, 2016 23:38
-
-
Save jbrowning/9527280 to your computer and use it in GitHub Desktop.
Angular & CoffeeScript: Error: [ng:areq] Argument 'fn' is not a function, got Object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you so much π