Follow-up cleanups for model inputs#54387
Conversation
627baa3 to
67ce676
Compare
There was a problem hiding this comment.
We could simplify it a bit by tracking the Subscription.unsubscribe here, but then we run the risk of either the this not being correct when it's invoked, or having to track the context of the function, or having to create a new instance using .bind.
67ce676 to
77c8173
Compare
There was a problem hiding this comment.
Nice! need this for output as well. Set this up as a preparation and to be able to "implement" the interface
alxhub
left a comment
There was a problem hiding this comment.
Reviewed-for: public-api, language-service
Reworks `ModelSignal.subscribe` so it doesn't have to wrap its value to look like a subscription.
Reworks the model so that it reuses `INPUT_SIGNAL_NODE` instead of implementing its own.
Getting the typing for `ɵunwrapWritableSignal` just right was tricky so these changes add some tests to ensure that we don't regress. Also reworks the type tester a bit to make it easier to find where to add new test files.
Sets up type checking diagnostic tests for model() inputs.
Splits up the tests for `input()` and `model()` into separate files.
Updates the language service tests to cover `model()` inputs.
77c8173 to
0eac0eb
Compare
AndrewKushnir
left a comment
There was a problem hiding this comment.
Reviewed-for: public-api
jessicajaniuk
left a comment
There was a problem hiding this comment.
reviewed-for: public-api
|
This PR was merged into the repository by commit 0b955b8. |
Reworks `ModelSignal.subscribe` so it doesn't have to wrap its value to look like a subscription. PR Close #54387
Reworks the model so that it reuses `INPUT_SIGNAL_NODE` instead of implementing its own. PR Close #54387
Getting the typing for `ɵunwrapWritableSignal` just right was tricky so these changes add some tests to ensure that we don't regress. Also reworks the type tester a bit to make it easier to find where to add new test files. PR Close #54387
Sets up type checking diagnostic tests for model() inputs. PR Close #54387
Splits up the tests for `input()` and `model()` into separate files. PR Close #54387
Updates the language service tests to cover `model()` inputs. PR Close #54387
Reworks the model so that it reuses `INPUT_SIGNAL_NODE` instead of implementing its own. PR Close #54387
Getting the typing for `ɵunwrapWritableSignal` just right was tricky so these changes add some tests to ensure that we don't regress. Also reworks the type tester a bit to make it easier to find where to add new test files. PR Close #54387
Sets up type checking diagnostic tests for model() inputs. PR Close #54387
Splits up the tests for `input()` and `model()` into separate files. PR Close #54387
Updates the language service tests to cover `model()` inputs. PR Close #54387
…54387) Reworks `ModelSignal.subscribe` so it doesn't have to wrap its value to look like a subscription. PR Close angular#54387
Reworks the model so that it reuses `INPUT_SIGNAL_NODE` instead of implementing its own. PR Close angular#54387
Getting the typing for `ɵunwrapWritableSignal` just right was tricky so these changes add some tests to ensure that we don't regress. Also reworks the type tester a bit to make it easier to find where to add new test files. PR Close angular#54387
Sets up type checking diagnostic tests for model() inputs. PR Close angular#54387
Splits up the tests for `input()` and `model()` into separate files. PR Close angular#54387
Updates the language service tests to cover `model()` inputs. PR Close angular#54387
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Includes some cleanups around
model()inputs as well as more test coverage. See the individual commits for more info.