Replies: 1 comment 1 reply
-
Since the constructor is only called once, the constructor is only provided the things that can't change per-render about a single directive instance, which is the PartInfo. The directive parameters can change every render, so they're only provided in What are you trying to do that you want constructor parameters? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there specific reason why Directive constructor is only passed the part, but no props?
I have a scenario where I would like to access directive arguments during one time setup
process with the constructor().
Example:
Beta Was this translation helpful? Give feedback.
All reactions