I have 3 type of components to handle forms. They are:
EntityFormEditComponent //To Edit
EntityFormViewComponent // To Visualize
EntityFormCreateComponent // To Create
They have a common parent that is the EntityFormComponent
that share the basic logic between themself.
When i create a new entity, this entity extends from the base forms components, like this:
UserFormEditComponent extends from EntityFormEditComponent
UserFormViewComponent extends from EntityFormViewComponent
UserFormCreateComponent extends from EntityFormCreateComponent
This way of organizing my project create a problem that is:
How i can share the common methods between these 3 components ?
I think that service would be a solution, but is not recomendable because they aren't used to handle component logic.