Utilizing AngularJS 1.5 and utilizing ‘$emit’ to dispatch an event to the parent controller in order to refresh the data. I have included logic in the ‘$On’ function to update the parent controller data.
However, after updating the Parent controller data successfully, it seems that the child controller, where ‘$emit’ was triggered from, is unable to bind the updated data.
I've attempted using ‘$apply’, but it throws an error mentioning that the ‘$digest’ process is already ongoing. I even used Batrang tool to inspect the data and found that all necessary data exist on the page, yet they are not reflecting on the UI.
Is there a way to force Angular to properly bind this data with the HTML controls that are currently present on the page?
I'm unable to provide sample code since this issue is occurring within a live project and recreating it would require setting up a separate sample project. If providing a solution without seeing the code is challenging, I can create a Plunker tomorrow to demonstrate the problem.