Skip to content

Model inputs not working as expected #57124

@d3473r

Description

@d3473r

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

No

Description

Hi, the new model inputs are not working as expected for me.
When i change the model input from the parent component the change is not reflected in the child component.
In this example the parent component sets the save model input immediately to false again.
In the stackblitz you can the the save signals are getting out of sync

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-pgh9xy?file=src%2Fmain.ts

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

@angular/core: 18.1.1

Anything else?

I want to implement a generic save component. This component sets the model input save to true and shows some loading indication as long as save is true.

This component is used from different parent component which intern either do http requests or just execute some code.
When they are finished they set the save model to false again. Then the loading animation should stop in the child component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: coreIssues related to the framework runtimebugcore: inputs / outputscore: reactivityWork related to fine-grained reactivity in the core frameworkcross-cutting: signalsstate: Needs Design

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions