+ 1
What is ajax in angular js in script source, what it's work?
2 Answers
+ 1
There was a time when every request made to server made the web page to refresh.
Imagine going to YouTube and not able to see anything because of continuous page refreshing.
AJAX helped us to go to next level in front end development. AJAX made the SPAs like Angular possible.
It's just like "OK dude, make your server request I won't bother anyone else and once the response comes back we can do whatever we want with it" technical term for this is Asynchronous.
In the start AJAX syntax was scary like this
https://code.sololearn.com/W1CDs8hlEe9F/?ref=app
But these days it's more simpler like this.
https://code.sololearn.com/Ww8FVJQJ1ZjD/?ref=app