-
Notifications
You must be signed in to change notification settings - Fork 26.6k
Closed as not planned
Closed as not planned
Copy link
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: host and host bindingscross-cutting: signalsneeds: discussionIndicates than an issue is an open discussionIndicates than an issue is an open discussion
Milestone
Description
Which @angular/* package(s) are relevant/related to the feature request?
core
Description
I am currentely trying to use new input signal api
but I am unable to replace this code with DRY.
@HostBinding('attr.title')
@Input({ required: true, alias: 'appModalClose' })
public closeBtnText!: string;
Proposed solution
Maybe it should be replaced by something like
public closeBtnText = input.required<string>({ alias: 'appModalClose', hostBinding: ['attr.title'] });
Alternatives considered
I was trying to find some solutions, but this is not working
@HostBinding('attr.title')
public closeBtnText = input.required<string>({ alias: 'appModalClose' });
- Host is stacked in memory leak
@Component({
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
host: {
'[title]': 'closeBtnText()',
},
})
export class ModalCloseComponent {
public closeBtnText = input.required<string>({ alias: 'appModalClose' });
}
shaman-apprentice, gtteamamxx, Tarik-INC, jbjhjm, DaSchTour and 31 morebartholomej, samuelfernandez, nuriddin2468, keatkeat87, gtteamamxx and 11 more
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: host and host bindingscross-cutting: signalsneeds: discussionIndicates than an issue is an open discussionIndicates than an issue is an open discussion