Zachscs
Zachscs

Reputation: 3663

Data binding update values in child component with abstracted changes?

If a value is too abstracted does that prevent the value from updating in the component it is passed to? For example: <some-component [someValue]="someValue"></some-component> and if we define someValue in the parent component to be someValue = otherValue and we say otherValue = someOtherValue will changing someOtherValue update someValue in the child component? I'm having some issues and wondering if this could be the problem.

Upvotes: 0

Views: 33

Answers (1)

Sandip Jaiswal
Sandip Jaiswal

Reputation: 3720

If it is primitive data type (string, number, boolean) then change will not trigger but if it is a object then yes changing in property of object will trigger changedetection.

Hope it will help

Upvotes: 1

Related Questions