We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi all,
cannot make this work, i have all the time unkjnown provider. Here is my webpack conf:
{ test: /\.js$/, exclude: /(node_modules|bower_components)/, loader: 'ng-annotate!babel-loader?presets[]=es2015&presets[]=stage-2&compact=false' },
Here is my controller:
/** @ngInject / /
class ProvaController {
constructor($log) { $log.debug('Instatiated the ProvaController'); this.name = "ProvaController"; };
}
export default ProvaController;
But i've tried also:
/* * @author Trilogis developer * prova * * This is a module generated with trilogis template module scaffolder */ class ProvaController { constructor($log) { 'ngInject'; $log.debug('Instatiated the ProvaController'); this.name = "ProvaController"; }; } export default ProvaController;
Any ideas?
The text was updated successfully, but these errors were encountered:
I don't think ngAnnotate works with classes. You have to use ngInject() to manually inject dependencies.
ngInject()
Sorry, something went wrong.
Thank you for your reply! I've done it manually.
I switched from the loader to the https://github.com/jeffling/ng-annotate-webpack-plugin as it has better support for ES6 features. Import and export work as an example.
No branches or pull requests
Hi all,
cannot make this work, i have all the time unkjnown provider.
Here is my webpack conf:
Here is my controller:
/** @ngInject /
/
*/
class ProvaController {
}
export default ProvaController;
But i've tried also:
Any ideas?
The text was updated successfully, but these errors were encountered: