I'm new to AngularJS, so this might be a trivial question.
The problem I'm facing is that the AngularJS bindings {{Object.Field}} reverting to un formatted state whenever there is an update-panel partial update. I understand that the update-panel is replacing the DOM with the non formatted text({{Object.Field}}), but I'm not able to make angular re-evaluate the piece of HTML that was injected by the update panel.
What I've tried so far:
- Got a handle to the scope of the controller from the End_Request of the update panel and wrapped the update function on the controller inside of a $scope.apply();
- Called the $scope.compile at the same place and also inside the controller, with no result changes.
- Tried replacing with a directive, but I don't think this is what I want.
I can get a handle to the DOM inside the controller and change it directly, but I understand that this is not a recommended approach and hence I'm here asking this question.
How do I make angular re-evaluate the piece of HTML, replaced/injected by an asp.net update panel's partial update?