-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
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
Support for annotating template and templateUrl properties on angular 1.5 component #231
Comments
+1 However you can avoid the array syntax using an explicit annotation: .component('my-app', {
// @ngInject
templateUrl: ($locale) => `views/${$locale.id}/app/app.html`,
controller: Controller
}) |
Correct, the new angular 1.5 way of defining components breaks ngAnnotate / uglify. |
👍 |
3 similar comments
+1 |
+1 |
+1 |
This is also an issue with controllers, i.e. this doesn't work (
While this does:
|
This feature would be useful in my application as well. Explicit annotation works fine, but it would be nice if this were automatic. @olov Does your closing this issue mean that this feature won't ever be added? |
ng-annotate version: 1.2.1
It appears that with the new component, the template and templateUrl properties can also be a function called by the injector (forgive the toy example):
It doesn't look like ng-annotate is currently annotating these, though, so I had to fall back to the array syntax:
The text was updated successfully, but these errors were encountered: