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.

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

4 Comments

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 What are you using to display the widget? Is it an iframe? JQuery?
Its a custom widget for an application I'm using. It acts similar to an iframe.
I think your answer may be to simply reload the DOM element stackoverflow.com/questions/8840580/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.