You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is intended but to me it feels like a bug.
When testing a component with an input signal I can't use constructor injection because I get a NG0303: Can't set value of the 'value' input on the 'DummyComponent' component. error. Replacing constructor injection with the inject() function, however, works just fine.
This is a simple test component showcasing the behavior:
I'm not sure if this is intended but to me it feels like a bug.
When testing a component with an input signal I can't use constructor injection because I get a
NG0303: Can't set value of the 'value' input on the 'DummyComponent' component.
error. Replacing constructor injection with theinject()
function, however, works just fine.This is a simple test component showcasing the behavior:
testfile:
versions:
The text was updated successfully, but these errors were encountered: