Is it possible to extend a component in Angular 2 and still use the inputs and outputs in the parent?
export class Book {
@Input() name;
}
export class EBook extends Book {
@Input() downloadUrl;
@Input() size;
}
When I try to extend a component everything inside the class works except the code that need attributes/decorators, like inputs and outputs. I made a plunker that illustrates the problem: http://plnkr.co/edit/cfTKgScbaXMmEMoGY0zr
Book is a base component with one input/output Name.
EBook inherits from Book and adds input/output DownloadUrl, Size.
As you can see in the plunker, EBook doesn't get a name since the input is defined in Book and not in EBook