This is an AngularJs directive, to be used as a CRUD