Not sure if NG2 has a built-in way to support this. I just used a base component class containing all or most of the logic and data without an html template. Then, in the derived component classes, you just need to declare a constructor that calls super (...) and define the appropriate html template.
If your application is complex, you will probably use a module to instantiate classes, then make sure you declare moduleId: module.id in the Component attribute, otherwise NG2 runtime might complain that the html template could not be loaded .
source
share