Rehusable clickToEdit directive in angularjs