Unable to reuse base class directive EventEmitter in the inherited class?

This issue has been tracked since 2022-09-22.

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

No

Description

I have inherited a 3rd party directive (in the test example below it's MatSort) and subscribed to its EventEmitter emit in the inherited class (CustomMatSortDirective). However, the subcription never gets triggered after emit call in the base class. Moreover - now it even does not work in the component which makes use of the inherited directive.

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/angular-wdmk8l?file=app%2Fcustom-sorting-directive.ts,app%2Ftable-sorting-example.html,app%2Ftable-sorting-example.ts

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.1303.9
@angular-devkit/build-angular      13.3.9
@angular-devkit/build-ng-packagr   0.1002.0
@angular-devkit/core               11.0.7
@angular-devkit/schematics         11.0.7
@angular/cdk                       13.2.6
@angular/cdk-experimental          13.2.6
@angular/cli                       13.1.4
@angular/material                  13.2.6
@schematics/angular                13.1.4
ng-packagr                         13.3.1
rxjs                               6.6.7
typescript                         4.5.5

Node (18.8.0)

Anything else?

No response

JoostK wrote this answer on 2022-09-22

Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag angular.

If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.

More Details About Repo
Owner Name angular
Repo Name angular
Full Name angular/angular
Language TypeScript
Created Date 2014-09-18
Updated Date 2022-09-30
Star Count 84091
Watcher Count 3064
Fork Count 22233
Issue Count 1203

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date