Basic crud operations with angularjs