Some snippets for learning Angular-js