0

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.

hahahakebab
  • 318
  • 6
  • 20

1 Answers1

1

Calling $scope.$apply() from within your controller will re-render.

Chris
  • 302
  • 1
  • 8
  • 1
    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. – 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
  • 1
    Its 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