Skip to content
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

Fix Angular doesn't compile when @Input/@Output are private #308

Merged
merged 11 commits into from
Sep 30, 2020

Conversation

amine-bambrik-p8
Copy link
Contributor

Angular complain about passing data to @input fields that are private

What I have done is:

  • instead of private use public getters without setters for @Output and return an alternative private field
  • instead of private use public setters without getters for @Input and set an alternative private field
  • might need to prefix the new private fields with _ prefix for consistency

I apologize for the bad pull request message this is my first ever pull request

instead of private use public getters without setters for @output and return an alternative private field
instead of private use public setters without getters for @input and set an alternative private field
might need to prefix the new private fields with _ prefix for consistency
Fix Angular doesn't compile when @Input/@output are private
linter complain about missing generic type
@santoshyadavdev
Copy link
Member

Thanks a lot @amine-bambrik-p8 for contributing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants