0

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

1 Answer 1

1

That's not supported in general and also not for Dart.

Sign up to request clarification or add additional context in comments.

5 Comments

I understood, but maybe is there some workaround (like @Component extension) to reuse specific subset of @Component parameters?
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.
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?
There are a few issues like github.com/angular/angular/issues/6781, github.com/angular/angular/issues/5415. Maybe others, don't remember.
It's sad.. Thanks a lot!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.