CaryLandholt / ng-classify

Convert CoffeeScript classes to AngularJS modules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix naming for providers

predorock opened this issue · comments

commented

Hi, when you use providers in ng-classify you will write the code :
class Hello extends Provider ...
Well, in documentation example is explained that the final provider name will be
app.provider('helloProvider', function Hello(){ ... }) (also I hav checked my output code)
But angular docs says that the framework will add the 'Provider' word from itself, so if you want actually use your declared provider you have to do :
app.config('appName',function(helloProviderProvider){ ... })
Is possible to fix that?
Thank you