-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Open
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: inputs / outputs
Milestone
Description
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
Yes
Description
When using Input transform feature, the input's type become unknown, and I'd like to allow certain type only like boolean | ''
import { booleanAttribute, Component, Input } from '@angular/core';
@Component({
selector: 'app-test',
template: `Disabled {{ disabled | json }}`,
})
export class TestComponent {
@Input({ transform: booleanAttribute })
disabled?: boolean;
static ngAcceptInputType_disabled: boolean | '';
}Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-zji3lf
Please provide the exception or error you saw
Class cannot have both a transform function on Input disabled and a static member called ngAcceptInputType_disabled
Please provide the environment you discovered this bug in (run ng version)
No response
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: inputs / outputs