Hello,

This might be more a typescript question, but most angular project should 
face it.
I'm trying to find the best solution for implementing more complex 
inheritance.

Let's say I have a ContactEditComponent which extends from a EditComponent 
abstract class.
I also have a ContactEditDialogComponent which is a modal version of the 
first component which extends from a EditDialogComponent abstract class.

Those abstract class helps me to make all EditComponent behave the same. 
And same for EditDialogComponents.
But in both ContactEditComponent and ContactEditDialogComponent I would 
need to share some Contact related code.
How could I share Contact related code between those components. Typescript 
does not allow multiple inheritance.

This is just an example, so let's say I just can't call 
ContactEditComponent inside of my ContactEditDialogComponent. And that the 
code can't just be externalized to a provider because it's directly related 
to the component.


-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to