Simple CRUD operation in AngulaJS