Title: It's impossible to set signal input of hosted directive - hostDirectives · Issue #55082 · angular/angular · GitHub
Open Graph Title: It's impossible to set signal input of hosted directive - hostDirectives · Issue #55082 · angular/angular
X Title: It's impossible to set signal input of hosted directive - hostDirectives · Issue #55082 · angular/angular
Description: Which @angular/* package(s) are relevant/related to the feature request? core Description When composing directives with signal inputs input(), it's impossible to set the inputs of hosted directive. We could do it with normal inputs for ...
Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? core Description When composing directives with signal inputs input(), it's impossible to set the inputs of hosted directive...
X Description: Which @angular/* package(s) are relevant/related to the feature request? core Description When composing directives with signal inputs input(), it's impossible to set the inputs of hosted direc...
Opengraph URL: https://github.com/angular/angular/issues/55082
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"It's impossible to set signal input of hosted directive - hostDirectives","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\n\ncore\n\n### Description\n\nWhen composing directives with signal inputs `input()`, it's impossible to set the inputs of hosted directive. \r\nWe could do it with normal inputs for example injecting this directive and then setting it's inputs. \n\n### Proposed solution\n\nAdd `signalInput.setInit(val)` method that will work but only before first change detection occure - so basicly only in constructors. \r\nI propose name `setInit(val)` or `init(val)` to distinct it from `set()` that can be used anytime with `model()` or `WrittableSignal`.\r\nSetting required inputs with `setInit` should not result with `required input not set` diganostic. Mayby additional option to `hostedDirectiives` would be requred for this to work which will indicate that the required input is set programaticly - this could be made separate issue if required. \n\n### Alternatives considered\n\nModify hosted directive to use `model` instead of `input` but it changes how hosted directive behaves. Especially when used in other palces.","author":{"url":"https://github.com/kbrilla","@type":"Person","name":"kbrilla"},"datePublished":"2024-03-28T08:27:16Z","url":"https://github.com/angular/angular/issues/55082"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c4133d2f-2123-bb24-5633-d1db5ead4163 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDE8:3A4875:F74645:1499ACE:6B010DD6 |
| html-safe-nonce | 89631ef70fdbf60c9bfae7919d691763a923ce8d4de3029e38ce8082353770f1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREU4OjNBNDg3NTpGNzQ2NDU6MTQ5OUFDRTo2QjAxMERENiIsInZpc2l0b3JfaWQiOiI5MTk0NzA1MzYxMDM3MjMzNjIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4a97b47603a2cdaf165a6f7a6d67bb1ae890ea92dae60c3a97f19aca194d50cd |
| hovercard-subject-tag | issue:2212635249 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/55082/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e7f636833512b3a9bb6f63431a5d953ad2cdc8c9ef73c9444c7424c4b73154da/angular/angular/issues/55082 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e7f636833512b3a9bb6f63431a5d953ad2cdc8c9ef73c9444c7424c4b73154da/angular/angular/issues/55082 |
| og:image:alt | Which @angular/* package(s) are relevant/related to the feature request? core Description When composing directives with signal inputs input(), it's impossible to set the inputs of hosted directive... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kbrilla |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width