Hi Christophe,

A word of advice, try to steer away from inheritance. If you read the book 
from the gang of 4(1995), it will teach you to favour composition over 
inheritance.
the problem with inheritance is that it creates hard to maintain/diagnose 
apps. Not only in TS but in all languages it's used.
Move your business logic into services, and inject those services in all 
components that need the same logic. Your contact related code should be in 
a constactService, that you then inject where you need it.

Regards
Sander


-- 
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