learning angularjs from blogpost http://blog.pangyanhan.com/posts/2013-08-27-ngtut.html