Я пробовал новый Angular 20, я заметил, что несколько тестовых случаев сбои, чтобы идентифицировать элементы для тестирования. />
stackblitz demo
gongular 20-ng-reflect-* Iss: actbitz. Демо
код:
@Component({
selector: 'app-child',
template: `
{{user().firstName}} | {{user().lastName}}
`,
})
export class Child {
user = input.required();
}
@Component({
selector: 'app-root',
imports: [Child],
template: `
`,
})
export class App {
user: any = {
firstName: 'test',
lastName: 'tester',
};
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... -due-to-mi