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

This issue has been created 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 84080
Watcher Count 3064
Fork Count 22235
Issue Count 1197

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
`$json` should handle functions with an error -`{$json: {$eval: 'min'}}` 8 2017-07-13 2022-07-15
[tests] index and slice strings with multibyte utf-8 0 2021-02-12 2022-05-23
[tests] test for division by zero 0 2021-02-12 2022-05-23
Get a `json-e.js.org` CNAME 0 2017-06-20 2022-09-23
[tests] more tests for some $operators 0 2021-02-12 2022-07-21
Error when building for cloudflare preset 0 2022-05-13 2022-09-29
Respect NO_COLOR environment variable 1 2021-08-27 2022-09-20
I believe in part 3, "OBS Browser source" is not installed with the obs-studio software 0 2021-12-06 2022-09-04
🐛 Bug Report: React Notification Center causes full page changes 0 2022-08-26 2022-08-30
problem when the cost matrix is non-square 1 2021-05-19 2022-09-29
Cleanup of OpenGlApplication/Runtime initialization 0 2020-07-16 2022-08-11
How to avoid performance penalty while dealing with too many unique values 1 2021-02-08 2022-09-29
Implement GO/Generalized Stochastic Backpropagation 1 2020-10-30 2022-09-29
Failure of ConsumerGroupTest.test_dead_group_recovery 4 2022-06-29 2022-08-20
Account names changed unexpectedly 8 2020-11-12 2022-07-15
[BUG] After installing Lightning Terminal, the lnd version display is no longer correct. 0 2022-04-07 2022-09-16
Provide Java 8 based sample, using extension/parent when possible 1 2020-09-08 2022-08-23
使用sandHook重打包后,xposed模块未hook成功 0 2021-01-22 2022-09-29
Feature Request: Interface to check the status that replicas are distributed to the zones 0 2022-06-21 2022-09-29
Deeply Nested Fragments Fail Based Upon Order of Fragments In Query 3 2022-06-21 2022-09-18
bitmaps can crash the UIDescrition Editor 17 2021-01-25 2022-09-26
Idea: 自动更新 OpenWrt 和梅林配置中的 refresh_token 5 2021-09-06 2022-08-21
[Feature request] 一个识别图形验证码的方法 7 2021-06-02 2022-07-21
"Options" in the Computer resource is missing in 8.5.0 3 2022-07-15 2022-08-09
Improper PAM authorization handling 6 2022-03-06 2022-07-31
example compile error on M1 mac 0 2022-08-11 2022-09-18
Cannot create `Random` with custom seed function (named exports of CJS module are inconsistent with TypeScript types) 8 2021-09-07 2022-09-26
Order of columns in the transaction list is not saved 5 2022-02-01 2022-08-29
Attempt to invoke virtual method 'void com.lxj.xpopup.animator.ShadowBgAnimator.animateDismiss()' on a null object 1 2021-07-02 2022-07-23
Can not install SDL_net because canot copile GUIlib 0 2021-02-11 2022-09-22
Support indexing order by 0 2022-09-13 2022-09-28
"Duplicate Key 38" Keeps happening 17 2021-06-24 2022-09-07
Missing character with color specification 5 2021-10-29 2022-09-29
prometheus-kube-stack: oauth with gitlab 4 2021-12-01 2022-07-21
The example in the readme is not compatible with Circuitpython 1 2021-10-30 2022-09-18
Writing unopinionated tests cases 18 2021-07-10 2022-09-02
Update Cilium to v1.11.0 0 2021-12-10 2022-09-05
`http.status_code` tag in the transaction payload 4 2021-10-05 2022-09-29
https://apt.llvm.org/llvm.sh is broken when given a single argument 3 2022-01-16 2022-01-14
Bug: (es5 multine string with closing html tag) 2 2021-09-28 2022-09-10
Update widest-line vulnerability? 2 2021-10-12 2022-09-23
Text wrapping doesn't account for margin 0 2021-04-04 2022-09-23
RegistryImage docs are broken 0 2022-02-11 2022-09-17
java.lang.AssertionError: PCode.co_name cannot be null! for pandas 0 2020-10-27 2022-09-07
Support useSnapshot 1 2021-03-07 2022-01-02
authorization_code grant type support 0 2022-09-01 2022-09-29
disable autoindent when pasting 2 2016-07-03 2022-09-28
Cypress 10 migration tool does not work with custom support file path 2 2022-06-01 2022-05-30
Add support for Fedora 37 0 2022-05-19 2022-09-22
[flutter/flutter] The XCUITest in flutter repo is not recognized as test files 1 2022-08-18 2022-09-10