Chapter 1. Hello AngularJS
This chapter covers
- Why you need AngularJS
- How AngularJS makes your life easier
- Understanding AngularJS from a high level
- Building your first AngularJS application
There was a time many internet years ago when any kind of logic within a web page had to be sent to the server for processing and then re-rendered as an entirely new web page. This “call and refresh” arrangement made for a disjointed user experience, which was only exacerbated when network latency was especially high.
The entire paradigm was upended with the introduction of XMLHttpRequest and the ability to make asynchronous calls to the server without actually having to refresh the page. This made for a much more coherent user experience because the user could perform a task that required a remote call and still interact with the application as the call was being made and processed. This is where the first wave of JavaScript frameworks landed and managed to prove that working with JavaScript could be done in a mostly sane way and no one was going to lose life or limb.