Replies: 2 comments
-
I'm not very sure but I think you can't as it would probably decorate the prototype of BaseSmartComponent and then all the subscribed observables in your child components will unsubscribe at the same time. You would also lose scalability by making it impossible for SampleSmartComponent to inherit from another class. It's only a supposition |
Beta Was this translation helpful? Give feedback.
0 replies
-
@hshahi well, we have an example in our integration app where component extends a directive that's decorated with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thanks for your useful decorator. Can it be used like the following and still get be functional in inherited component and
unsubscribe for the descendants? So that we don't have to put it in every single component.
Thanks in Advance. :)
@UntilDestroy()
@directive()
export class BaseSmartComponent<T extends BaseService>
{}
Component({
...
})
export class SampleSmartComponent extends BaseSmartComponent
{}
Beta Was this translation helpful? Give feedback.
All reactions