Skip to content

fix(@ngtools/webpack): only add ctor params to decorated classes #15416

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

Merged
merged 1 commit into from
Aug 23, 2019

Conversation

clydin
Copy link
Member

@clydin clydin commented Aug 23, 2019

This mimics the behavior of TypeScript's emitDecoratorMetadata option.

@clydin clydin added the target: patch This PR is targeted for the next patch release label Aug 23, 2019
@clydin clydin requested a review from alan-agius4 August 23, 2019 00:09
Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

2 NIT’s, commit should close #15404 and maybe add a test for an undecorated class?

@clydin
Copy link
Member Author

clydin commented Aug 23, 2019

Was waiting on confirmation that the referenced issue was indeed caused by this. I'll add it now.

@clydin clydin force-pushed the fix-ctor-params-decorators branch from 1bd8663 to a02f91b Compare August 23, 2019 13:25
@mgechev mgechev merged commit bb04321 into angular:master Aug 23, 2019
@clydin clydin deleted the fix-ctor-params-decorators branch August 23, 2019 18:34
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants