AngularJS - I need $ scope. $ Apply when using $ http

I need to call $ scope. $ apply when I make ajax call using $ http?

It doesn't seem to be needed because my code is still working, and when I used jQuery ajax, I needed to call apply or it didn't work.

So, to be absolutely sure, can I now skip usage requests?

+6
source share
1 answer

With AngularJS version 1.1.x, you will need to add Scope.$apply if you run $http calls outside of the AngularJS $digest loop.

Detailed explanations here: fooobar.com/questions/948813 / ...

+3
source

Source: https://habr.com/ru/post/948809/


All Articles