You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
featureLabel used to distinguish feature request from other issuesneeds: clarificationThis issue needs additional clarification from the reporter before the team can investigate.
Sometimes the child component from a third-party library initializes the view information in the OnInit or AfterViewInit or constructor, and the changes to the value of the model binding to the component are not reflected directly in the view, and because of that, we need to reload the component to make it reflected.
Sometimes when the main component is very complicated (contains filter and sort form, table and pagination, etc, or nested components), then to reset the main component, we have to reset everything in the main component one by one. It is just more efficient if we just reload the main component, and the state will automatically get reset.
For third-party components, it will take years for them to fix it to allow handling for any model changes. So the only workaround is to refresh the component.
This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.
You can find more details about the feature request process in our documentation.
For third-party components, it will take years for them to fix it to allow handling for any model changes.
Some of the projects are well maintained and pretty responsive so I would suggest opening issues on the relevant projects. And considering alternatives for ones that don't work correctly and / or are not well maintained.
So the only workaround is to refresh the component.
I don't think we want to build such workarounds into the framework. You can always inject ChangeDetectorRef and call detectChanges on it to refresh a given component and all its children - the work-around exists but again, this is not the solution for questionable design.
featureLabel used to distinguish feature request from other issuesneeds: clarificationThis issue needs additional clarification from the reporter before the team can investigate.
Activity
alxhub commentedon Aug 9, 2023
Hi @darius-iko,
Can you give some detail on what problem(s) or use cases you would expect this feature to address?
darius-iko commentedon Aug 9, 2023
Hi @alxhub
Sometimes the child component from a third-party library initializes the view information in the OnInit or AfterViewInit or constructor, and the changes to the value of the model binding to the component are not reflected directly in the view, and because of that, we need to reload the component to make it reflected.
darius-iko commentedon Aug 9, 2023
Sometimes when the main component is very complicated (contains filter and sort form, table and pagination, etc, or nested components), then to reset the main component, we have to reset everything in the main component one by one. It is just more efficient if we just reload the main component, and the state will automatically get reset.
mlc-mlapis commentedon Aug 9, 2023
@darius-iko It seems all the reasons imply only solving problems in the conceptual design of an application or third-party components.
darius-iko commentedon Aug 9, 2023
For third-party components, it will take years for them to fix it to allow handling for any model changes. So the only workaround is to refresh the component.
angular-robot commentedon Aug 9, 2023
This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.
You can find more details about the feature request process in our documentation.
pkozlowski-opensource commentedon Aug 10, 2023
Some of the projects are well maintained and pretty responsive so I would suggest opening issues on the relevant projects. And considering alternatives for ones that don't work correctly and / or are not well maintained.
I don't think we want to build such workarounds into the framework. You can always inject
ChangeDetectorRefand calldetectChangeson it to refresh a given component and all its children - the work-around exists but again, this is not the solution for questionable design.angular-automatic-lock-bot commentedon Sep 10, 2023
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.