Skip to content

Attribute inside selector changed the input value in Angular@19 #60157

@xianshenglu

Description

@xianshenglu

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

core

Is this a regression?

Yes

Description

Reproduction steps:

  1. Open the angular 19 demo and wait for ui ready
  2. Click the "click me" button in the rendered ui.
  3. What you can see is "Value from input:" in the dialog

I'm expecting "Value from input: value for dialog" which is the result of angular 18 demo.

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/u69etxxn?file=src%2Fmain.ts

Please provide the exception or error you saw


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

Angular CLI: 19.1.7
Node: 18.20.3
Package Manager: npm 10.2.3
OS: linux x64

Angular: 19.1.6
... animations, common, compiler, compiler-cli, core, forms
... platform-browser

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1901.7
@angular-devkit/core         19.1.7
@angular-devkit/schematics   19.1.7
@angular/build               19.1.7
@angular/cdk                 19.1.4
@angular/cli                 19.1.7
@angular/material            19.1.4
@schematics/angular          19.1.7
rxjs                         7.8.1
typescript                   5.7.3
zone.js                      0.15.0

Anything else?

No response

Metadata

Metadata

Labels

area: coreIssues related to the framework runtimecore: dynamic view creationregressionIndicates than the issue relates to something that worked in a previous version

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions