Skip to content

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