0

I've got AngularJS code working as part of the page where we use AJAX Control Toolkit.

After clicking a button which is inside update panel (async postback) AngularJS is not re-initialized.

How can I re initialize it after async postback?

Example which works for jQuery:

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () {
   //re initialize js jQuery code
});
1

1 Answer 1

0

If you make model changes in a callback outside of Angular (which is what it sounds like you want to do), you can let Angular become aware of the changes by calling $rootScope.$apply(). This will start the digest loop which will update all views, trigger watches etc.

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

Comments

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.