I have some abstract/base classes, which are inherited by other modules in other applications. These are not services, nor components - just contain some common features that are used by different components - and these components would be used in several different projects. For example i have a base input class, that is inherited by alphanumeric input class, which is then inherited by an alphabetic and alphanumeric input component having their own separate modules and npm packages ready to be used in future projects.
My plan was to create a base module: a collection of base classes which the component modules could import and extend, but i cannot declare or provide a normal class without @Component/@Pipe/@Directive or @Injectable decorators.
It seems the code would compile if i decorated each base class with @Injectable - but these are not services just code to be inherited later so i dont know if this is the proper/an acceptable approach.
What is the best way to define a such base module with a generic collection of classes to be used in several other independent components? Ideally each such component should have its own module and npm package, with a dependency on the base class collection package.