I was wondering if it is at all possible re-render a specific element on a html page or the entire page itself whilst still keeping the controller the same. Thanks for any help.
Asked
Active
Viewed 5,479 times
1 Answers
2
Calling $scope.$apply()
from within your controller will re-render.

Chris
- 322
- 1
- 9
-
1Hi, What I have in the html is a widget that I update values from based on user input. $scope.$apply doesn't seem to refresh the widget. – hahahakebab Feb 08 '17 at 00:04
-
@hahahakebab What are you using to display the widget? Is it an iframe? JQuery? – Chris Feb 08 '17 at 00:08
-
1Its a custom widget for an application I'm using. It acts similar to an iframe. – hahahakebab Feb 08 '17 at 00:21
-
I think your answer may be to simply reload the DOM element http://stackoverflow.com/questions/8840580/force-dom-redraw-refresh-on-chrome-mac – Chris Feb 08 '17 at 00:25