You're right, the Observable is bound to the parent, that may be why change 
detection is not propagating to the child who's receiving the end-value of 
the Observable.

I'll try changing the way I'm passing the values as you've mentioned and 
get back with the results.

Thanks for the quick reply!

On Monday, December 19, 2016 at 2:31:22 PM UTC-5, Lucas Lacroix wrote:
>
> It would definitely help to see a code example.
>
> My best guess, without seeing any code, is that the parent component's 
> template is bound to the observable itself while the child is bound so some 
> value returned by the observable and, therefore, does not know when the 
> parent's value has changed. Similar issues can occur if the parent is bound 
> to 'x', such that the value of 'x' is:
> {
>   title: 'Titular Title',
>   data: ...
> }
> and the child is bound to x.title. If you change x in the parent, the 
> child does not know to re-render because it only has a reference to x.title 
> and not x. If you were to change x.title, the child would re-render.
>
> -Luke
>
> On Mon, Dec 19, 2016 at 2:22 PM Andrew Ip <[email protected] 
> <javascript:>> wrote:
>
>> Hi all,
>>
>> I've got a parent component that subscribes to an Observable that returns 
>> some data.
>> That Observable also sets some data in the parent that is passed to a 
>> child component.
>>
>> I'm having an issue though, when the parent's Observable modifies X, and 
>> X is passed to the child, the child template does not show the modified 
>> value of X.
>>
>> I can provide code if need be, but this is a general question about 
>> parent->child value propagation via an Observable.
>>
>> Thanks in advance
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Angular" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> Lucas Lacroix
> Computer Scientist
> Advanced Technology Division, MEDITECH <http://ehr.meditech.com/>
> 781-774-2293
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to