Support protected
for input(), output(), and model().
#54681
Labels
Milestone
protected
for input(), output(), and model().
#54681
Description
Hello;
In Angular 17,
signals
are awesome. Now , I usesignal
,input
andmodel
in everywhere.model
signal has both of variable andinput
properties. If we use withpublic
then it would be a component parameter. If we use withprotected
then it wouldn't as an input. Can we add a option (like aspublic model = model<string>.protected()
) for noìnput
oroutput
parameter. Sometimes we needs access from other class (with directive, or dynamic componentcreateComponent
) but we wants notinput
oroutput
Proposed solution
public model = model.protected<string>()
-> Only two-way bindingpublic model = model.protectedInput<string>()
-> two-way binding + @input()public model = model.protectedOutput<string>()
-> two-way binding + @output()The text was updated successfully, but these errors were encountered: