If you are building web apps with Angular JS, sooner or later you're going to want to know how to make HTTP requests of some sort. There are thousands of APIs out there that give you the ability to pull data into your application. Something you will also want to learn is how to make these HTTP requests asynchronous.

In computer science, Asynchronous I/O, or non-blocking I/O is a form of input/output processing that permits other processing to continue before the transmission has finished. Input and output (I/O) operations on a computer can be extremely slow compared to the processing of data.


Wikipedia (asynchronous)

Angular makes building AJAX apps extremely quick and easy.

Here I will show you how I created a simple iTunes search app using Angular in less than 30 lines of code. I used bootstrap and some custom css to make it somewhat presentable.

Checkout the demo.

Angular JS Controller

The HTML

If you also want the CSS you can just grab it from the demo page.

© 2014. All Rights Reserved.

Proudly published with Ghost