Sample Code on AngularJs