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.
1 Answer
Calling $scope.$apply()
from within your controller will re-render.
4 Comments
hahahakebab
Hi, 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.
Chris
@hahahakebab What are you using to display the widget? Is it an iframe? JQuery?
hahahakebab
Its a custom widget for an application I'm using. It acts similar to an iframe.
Chris
I think your answer may be to simply reload the DOM element stackoverflow.com/questions/8840580/…