Title: signal inputs seem to not work with `numberAttribute` (generic is needed, or needs inference) · Issue #53969 · angular/angular · GitHub
Open Graph Title: signal inputs seem to not work with `numberAttribute` (generic is needed, or needs inference) · Issue #53969 · angular/angular
X Title: signal inputs seem to not work with `numberAttribute` (generic is needed, or needs inference) · Issue #53969 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description @Directive({ selector: 'auto-focus', standalone: true, }) export class AutoFocus { delay = input
Open Graph Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description @Directive({ selector: 'auto-focus', standalone: true, }) export class AutoFocus { delay = input X Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description @Directive({ selector: 'auto-focus', standalone: true, }) export class AutoFocus { delay = ...
Opengraph URL: https://github.com/angular/angular/issues/53969
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"signal inputs seem to not work with `numberAttribute` (generic is needed, or needs inference)","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncore\n\n### Is this a regression?\n\nYes\n\n### Description\n\n```ts\r\n@Directive({\r\n selector: 'auto-focus',\r\n standalone: true,\r\n})\r\nexport class AutoFocus {\r\n delay = input\u003cnumber>(300, { transform: numberAttribute });\r\n}\r\n```\r\n\r\nThrow error:\r\n\r\n```\r\nError in src/main.ts (10:32)\r\nType '(value: unknown, fallbackValue?: number | undefined) => number' is not assignable to type 'undefined'.\r\n```\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://stackblitz.com/edit/stackblitz-starters-fv1yrc?file=src%2Fmain.ts\n\n### Please provide the exception or error you saw\n\n_No response_\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI: 17.1.0\r\nNode: 18.16.0\r\nPackage Manager: yarn 4.0.2\r\nOS: darwin x64\r\n\r\nAngular: 17.1.0\r\n... animations, cdk, cli, common, compiler, compiler-cli, core\r\n... elements, forms, language-service, platform-browser\r\n... platform-browser-dynamic, platform-server, router\r\n... service-worker, ssr\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1701.0\r\n@angular-devkit/build-angular 17.1.0\r\n@angular-devkit/core 17.1.0\r\n@angular-devkit/schematics 17.1.0\r\n@schematics/angular 17.1.0\r\nng-packagr 17.1.0\r\nrxjs 7.8.1\r\ntypescript 5.3.3\r\nzone.js 0.14.3\n```\n\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/cipchk","@type":"Person","name":"cipchk"},"datePublished":"2024-01-18T10:02:49Z","url":"https://github.com/angular/angular/issues/53969"}
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:7d83aa69-b8f8-017f-87f1-036b5ab8ea60 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 9B7C:34CAB:2B16721:3715573:6B01B83D html-safe-nonce 7529f6809d355a236da77c657a25347b99a9decc66c1b7c3d6ceaeccfd14a556 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjdDOjM0Q0FCOjJCMTY3MjE6MzcxNTU3Mzo2QjAxQjgzRCIsInZpc2l0b3JfaWQiOiIxNDYzOTM3NDQ0MjY4MzI0OTI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac bfa215aa50989999f707db1cd0e4ba3e583e748fb9ec8801fcf751ed8f41089a hovercard-subject-tag issue:2087934992 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/53969/issue_layout twitter:image https://opengraph.githubassets.com/13ff9e8acaae5f7d98dd5b4e37ef5d4495b228b5ab8f197fd34b11fdab88e4eb/angular/angular/issues/53969 twitter:card summary_large_image og:image https://opengraph.githubassets.com/13ff9e8acaae5f7d98dd5b4e37ef5d4495b228b5ab8f197fd34b11fdab88e4eb/angular/angular/issues/53969 og:image:alt Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description @Directive({ selector: 'auto-focus', standalone: true, }) export class AutoFocus { delay = input og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username cipchk hostname github.com expected-hostname github.com None cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c 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 8c77c9e8439031ad54c75a250694842892f693e1 ui-target canary-1 theme-color #1e2327 color-scheme light dark react-app-name issues
URLs of crawlers that visited me.