Also you might want to identify how to use this with CoffeeScript. I'm not 
sure what % of Angular builders use CS, but I think it's sizeable. CS doesn't 
have named function declarations 
<https://github.com/jashkenas/coffeescript/issues/15>. Will an expression 
work if it's stored in a named variable?

On Monday, September 1, 2014 2:37:50 PM UTC-7, Alon Gubkin wrote:
>
> Hey,
>
> I just released a library that solves the hassle of maintaining 
> dependencies by scanning the code and injecting them automatically.
>
> For example, the following:
> app.controller('MyCtrl', function ($scope, 
>                                    $timeout, 
>                                    $state, 
>                                    $stateParams, 
>                                    $localStorage, 
>                                    $ionicPlatform, 
>                                    $ionicModal, 
>                                    $ionicPopup, 
>                                    LoginService, 
>                                    MessageService) { 
>     ... 
> });
>
>
> ... turns into:
> app.controller('MyCtrl', $inject(function MyCtrl() { 
>     ... 
> }));
>
>
> https://github.com/alongubkin/AutoInjector.js
>
> What do you think?
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to