persisting demerit actions to server with angular