@Akash_D_Souza wrote:
I have a computed property (
comp2
) which depends on another computed property(comp1
) which depends on a property,foo
, in the controller. I also have another propertyvalueOfComp2
in the controller which, for the sake of simplicity, is updated with the value ofcomp2
throughupdate
methodDuring
init
, I setcomp2
to some value. After this, any update tofoo
will not reflect incomp2
orvalueOfComp2
If I access
comp1
orcomp2
directly in the template, then there is no issue. Iffoo
is declared as a dependency incomp2
, then there is no issue. If I accesscomp1
at least once inupdate
method, then everything works.I sort of understand why this happens. But, why does it break only when there is a
setter
involved?
Posts: 1
Participants: 1