Title: New input should be writable from ts. · Issue #69496 · angular/angular · GitHub
Open Graph Title: New input should be writable from ts. · Issue #69496 · angular/angular
X Title: New input should be writable from ts. · Issue #69496 · angular/angular
Description: Which @angular/* package(s) are relevant/related to the feature request? core Description I really don't like new input because it is not writable in ts code. Why I can set new value from the parent template but not in code? For example ...
Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? core Description I really don't like new input because it is not writable in ts code. Why I can set new value from the paren...
X Description: Which @angular/* package(s) are relevant/related to the feature request? core Description I really don't like new input because it is not writable in ts code. Why I can set new value from the p...
Opengraph URL: https://github.com/angular/angular/issues/69496
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"New input should be writable from ts.","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\n\ncore\n\n### Description\n\nI really don't like new input because it is not writable in ts code. Why I can set new value from the parent template but not in code? For example I wrote directive which have logic to compute host's input 'a' based on value 'b' and 'c'. Directive is generic and I can use it on many types of component because I can set input name as parameter. The issue is that if input() is used in host component i can't modify it from directive code. I try use ComponentRef.setInput but i can't inject componentRef to directive. Wich old @Input approach I don't have issue.\nThe workaround I can used model instead input but It need modify host component code.\n\n### Proposed solution\n\nI think that input should be writable as before. I know that model is but model is also component output. I don't see any signal to make only input but writable. I don't understand why we can write into input from angular template but not from code. I know that you want to make input not writable from inside of component and this is good but it should be writable from outside also in typescript.\n\n### Alternatives considered\n\nAs above","author":{"url":"https://github.com/marcins89","@type":"Person","name":"marcins89"},"datePublished":"2026-06-24T09:47:00Z","url":"https://github.com/angular/angular/issues/69496"}
| 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:6b224906-f7d8-6601-a34f-11deca9d6aaa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE0A:29AEE8:F74B59:14A5BEB:6B010DD9 |
| html-safe-nonce | 5f515abdff6c6499f53ac8d088dc8a9602d44bc382f5076eaaf7546227bc6810 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTBBOjI5QUVFODpGNzRCNTk6MTRBNUJFQjo2QjAxMEREOSIsInZpc2l0b3JfaWQiOiIxMTUxOTU1MzM2MzI4OTczNzg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 20ac9a2d4de74ef15091ad27a3450d4ec06dc852fe1cd938c86fa169d51b1fb7 |
| hovercard-subject-tag | issue:4733618906 |
| 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/69496/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e894064a87336860ba77bea9011161068ed74ebde49421d68eec6da2d0ff2ee4/angular/angular/issues/69496 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e894064a87336860ba77bea9011161068ed74ebde49421d68eec6da2d0ff2ee4/angular/angular/issues/69496 |
| og:image:alt | Which @angular/* package(s) are relevant/related to the feature request? core Description I really don't like new input because it is not writable in ts code. Why I can set new value from the paren... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | marcins89 |
| 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