Code Samples for Angular Js