How Angular2 component inheritance (e.g. inputs reuse) can be implemented with Dart? Found number of issues on github, but seems that it will not be supported by default in Angular2. Also found workaround, but looks like it's applicable on TypeScript only.
1 Answer
That's not supported in general and also not for Dart.
5 Comments
Adamovskiy
I understood, but maybe is there some workaround (like
@Component extension) to reuse specific subset of @Component parameters?Günter Zöchbauer
I'm pretty sure there isn't. I wouldn't build on the mentioned TS workaround as well because it probably won't work with several features (like Universal or offline template compiler) and is prone to break at any time without notification anyway.
Adamovskiy
Ok about
ComponentMetadata fields, but is it some known bug that when component class extends one that implements some lifecycle hook, it doesn't works?Günter Zöchbauer
There are a few issues like github.com/angular/angular/issues/6781, github.com/angular/angular/issues/5415. Maybe others, don't remember.
Adamovskiy
It's sad.. Thanks a lot!