basic CRUD operations in angularjs