Hacker News new | ask | show | jobs
by solomone 4430 days ago
I like this. One thing I like about is it how it sets up a canonical place to init things.

The other nice effect is the use of the injector instead of the repeated list of dependencies.

When not using coffeescript in angular, I could see making good use of this. Thanks !

1 comments

It works really well with Coffeescript too. In fact it was written with Coffeescript and internally it uses Coffeescript's `Class` syntax.

It was originally inspired by this gist: https://gist.github.com/elado/8138516

I could see one annoyance being the lack of "fat arrow" in normal javascript and trying to reference the services in a callback.