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
{{ message }}
Repository navigation
Not working when some property of the class has a Decorator #44
letGoogleAutocompleteLegacyComponent=classGoogleAutocompleteLegacyComponent{/* @ngInject */constructor($element){'ngInject';}};// <-- NO annotation for class hereGoogleAutocompleteLegacyComponent=Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_libs_angularjs__WEBPACK_IMPORTED_MODULE_2__["LegacyComponent"])({name: 'googleAutocompleteLegacy',template: __webpack_require__(/*! ./google-autocomplete.legacy.component.jade */"./legacy/modules/main/components/google-autocomplete/google-autocomplete.legacy.component.jade"),bindings: {},controllerAs: 'ctrl'})],GoogleAutocompleteLegacyComponent);
Seems problem take place when in generated code class assigned to a variable eq. let Foo = class Foo {}
Activity
daniel-nagy commentedon Dec 14, 2018
If I put
/* @ngInject */just before the constructor it works.timofei-iatsenko commentedon Feb 3, 2020
The same is for Typescript decorated class with typescript configured for es2015 target:
input:
Output:
Seems problem take place when in generated code class assigned to a variable eq.
let Foo = class Foo {}