You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is because the plugin has nowhere to include the MyComponentController.$inject = ['$http'] statement because of the way the class is declared and associated to the controller property.
There is two possible solutions in this case
Add a MyComponent.controller.$inject = [...] statement
(my favorite) Add a class property to end up with something like:
Hello there,
I'm stuck with an issue with following angularJS component declaration where the plugin does not generate
$inject
arrayI think this is because the plugin has nowhere to include the
MyComponentController.$inject = ['$http']
statement because of the way the class is declared and associated to thecontroller
property.There is two possible solutions in this case
MyComponent.controller.$inject = [...]
statementFor the moment I use the following workaround:
It is a bit more verbose and add an additional nested level to the code
What do you think of this?
Thank you for reading !
The text was updated successfully, but these errors were encountered: