Skip to content

MockRender function input #6511

Answered by satanTime
cheng93 asked this question in Q&A
Aug 16, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @cheng93,

that's not true. funcInput will be set as @Input or @Output of TestComponent only when TestComponent has such an input or output.

If TestComponent has neither, then nothing will be done with funcInput.
if TestComponent has @Input() funcInput, then this.funcInput will be the function.
if TestComponent has @Output() funcInput, then funcInput will be triggered on emits of this.funcInput.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cheng93
Comment options

@satanTime
Comment options

@cheng93
Comment options

Answer selected by cheng93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants