My source code when I was learning angularjs. May not be of any use to anybody.