A simple example on RESTful connections with angular