feat: support decorator chaining and class creation in ES5#2534
feat: support decorator chaining and class creation in ES5#2534mhevery wants to merge 1 commit intoangular:masterfrom
Conversation
bc31f45 to
23320b3
Compare
There was a problem hiding this comment.
Webstorm must have gotten confused on rename. :-) reverted.
|
@vicb added support for parameter annotations. Could you have a look. |
f29439a to
a90231c
Compare
There was a problem hiding this comment.
merge with makeDecorator, ...
|
The one thing I don't like is how chaining is hard-coded. It might be nicer for competition but it makes harder to add support for other annotations ie RouteConfig |
|
Not sure I understand hard coded. Any annotations such as var RouteConfig = makeDecorator(RouteConfigAnnotation, (fn) {
fn.Component = Component;
fn.Custum = CustomFunctionRef;
}); |
|
@mhevery I am not really familiar with this code but I was under the impression that |
There was a problem hiding this comment.
you seem to support inheritance but there doesn't seem to be a way to call the parent constructor. is that intentional?
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This PR allows to write code in ES5 like so: