Bug: cdkObserveContent callback does not trigger change detection correctly #11280
Labels
area: cdk/observers
needs: discussion
Further discussion with the team is needed before proceeding
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Bug, feature request, or proposal:
Update a variable of component in the callback function of cdkObserveContent directive. The component template will not be updated. No
debounce
setting, it should not runoutsideAngular?For example,
Template snippet:
Component snippet:
What is the expected behavior?
CD should be triggered and template should be updated.
What is the current behavior?
What are the steps to reproduce?
I try it with stackblitz, but it has issue.
What is the use-case or motivation for changing an existing behavior?
I want to know what can or can't do in cdkObserveContent callback.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: