Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OutputEmitter does not support for subscribe in v17.2.4 #54802

Closed
aiuoe opened this issue Mar 10, 2024 · 4 comments
Closed

OutputEmitter does not support for subscribe in v17.2.4 #54802

aiuoe opened this issue Mar 10, 2024 · 4 comments

Comments

@aiuoe
Copy link

aiuoe commented Mar 10, 2024

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

core

Is this a regression?

No

Description

/**

  • An OutputEmitter is created by the output() function and can be
  • used to emit values to consumers of your directive or component.
  • Consumers of your directive/component can bind to the output and
  • subscribe to changes via the bound event syntax. For example:
  • <my-comp (valueChange)="processNewValue($event)" />
  • @developerPreview
    */
    export declare interface ɵOutputEmitter {
    emit(value: T): void;
    }

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

Property 'subscribe' does not exist on type 'ɵOutputEmitter<void>'.

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

Angular CLI: 17.2.1
Node: 18.19.0
Package Manager: npm 10.2.3
OS: linux x64

Angular: 17.2.4
... core

Package                             Version
-------------------------------------------------------------
@angular-devkit/architect           0.1702.1
@angular-devkit/build-angular       17.2.1
@angular-devkit/core                17.2.1
@angular-devkit/schematics          17.2.1
@angular/animations                 17.2.2
@angular/cli                        17.2.1
@angular/common                     17.2.2
@angular/compiler                   17.2.2
@angular/compiler-cli               17.2.2
@angular/forms                      17.2.2
@angular/platform-browser           17.2.2
@angular/platform-browser-dynamic   17.2.2
@angular/router                     17.2.2
@schematics/angular                 17.2.1
rxjs                                7.8.1
typescript                          5.3.3
zone.js                             0.14.4

Anything else?

No response

@JoostK
Copy link
Member

JoostK commented Mar 10, 2024

What are you trying to do? This API is only available from 17.3 onwards.

@aiuoe
Copy link
Author

aiuoe commented Mar 10, 2024

v17.2.4 includes ɵoutput fn dev preview and not work

@JeanMeche
Copy link
Member

output() is only available in v17.3. 17.2 doesn't include any implementation. ɵoutput is a symbol with no feature behind it.

@JeanMeche JeanMeche closed this as not planned Won't fix, can't repro, duplicate, stale Mar 10, 2024
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants