Thursday, November 14, 2019

components inheriting from components in Angular

I typically see a pattern in which a component just inherits from a base class that is either abstract or merely worthless as a component all by itself as it not a component itself. However, this sort of implies that you could just make a component inherit from a component I guess the metadata properties like selector and template at the parent just get stomped over by those of the child if there is a child at play.

No comments:

Post a Comment