1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Angular 20 ng-reflect-* attributes missing in HTML, test cases failing due to missing...

Discussão em 'Angular' iniciado por Naren Murali, Maio 17, 2025.

  1. Naren Murali

    Naren Murali Guest

    I have been trying out the new Angular 20, I noticed a few test cases were failing, the test cases specifically were using ng-reflect-* to identify elements to test.

    Below are two examples and screenshots highlighting my problem.

    Angular 19 - ng-reflect-* is present:


    [​IMG]

    Stackblitz Demo

    Angular 20 - ng-reflect-* is missing:


    Stackblitz Demo

    [​IMG]

    Code:


    @Component({
    selector: 'app-child',
    template: `
    {{user().firstName}} | {{user().lastName}}
    `,
    })
    export class Child {
    user = input.required<any>();
    }
    @Component({
    selector: 'app-root',
    imports: [Child],
    template: `
    <app-child [user]="user"/>
    `,
    })
    export class App {
    user: any = {
    firstName: 'test',
    lastName: 'tester',
    };
    }

    Continue reading...

Compartilhe esta Página