René's URL Explorer Experiment


Title: Compiler doesn't report missing import for a directive applied on `ng-template` · Issue #69322 · angular/angular · GitHub

Open Graph Title: Compiler doesn't report missing import for a directive applied on `ng-template` · Issue #69322 · angular/angular

X Title: Compiler doesn't report missing import for a directive applied on `ng-template` · Issue #69322 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? compiler Is this a regression? Yes Description When using a standalone attribute directive in a template via property binding syntax (e.g., [myDirective]="value"), the Angular compil...

Open Graph Description: Which @angular/* package(s) are the source of the bug? compiler Is this a regression? Yes Description When using a standalone attribute directive in a template via property binding syntax (e.g., [m...

X Description: Which @angular/* package(s) are the source of the bug? compiler Is this a regression? Yes Description When using a standalone attribute directive in a template via property binding syntax (e.g., [m...

Opengraph URL: https://github.com/angular/angular/issues/69322

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compiler doesn't report missing import for a directive applied on `ng-template`","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncompiler\n\n### Is this a regression?\n\nYes\n\n### Description\n\n- When using a standalone attribute directive in a template via property binding syntax (e.g., [myDirective]=\"value\"), the Angular compiler completely ignores the binding if the directive is forgotten in the @Component.imports array.\n\n- Even with strictTemplates: true and extended diagnostics enabled, the compiler does not throw an error or warning about an unknown property on standard HTML elements (like div), provided the bound expression is a method call or a valid property.\n\n### Please provide a link to a minimal reproduction of the bug\n\n_No response_\n\n### Please provide the exception or error you saw\n\n```true\nimport { Directive, Input } from '@angular/core';\n\n@Directive({\n  selector: '[auiTypedOption]',\n  standalone: true\n})\nexport class TypedOptionDirective {\n  @Input() auiTypedOption: any;\n}\n\n\n\nimport { Component } from '@angular/core';\n\n@Component({\n  selector: 'app-test',\n  standalone: true,\n  imports: [], // \u003c-- TypedOptionDirective is missing here\n  template: `\n    \u003cdiv [auiTypedOption]=\"searchResult()\">\u003c/div>\n  `\n})\nexport class TestComponent {\n  searchResult() {\n    return { query: 'test' };\n  }\n}\n\n\n\n{\n  \"angularCompilerOptions\": {\n    \"strictTemplates\": true,\n    \"extendedDiagnostics\": {\n      \"defaultCategory\": \"error\",\n      \"checks\": {\n        \"missingControlFlowDirective\": \"error\"\n      }\n    }\n  }\n}\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI       : 21.2.14\nAngular           : 21.2.17\nNode.js           : 24.16.0\nPackage Manager   : npm 11.10.0\nOperating System  : win32 x64\n\n┌───────────────────────────────┬───────────────────┬───────────────────┐\n│ Package                       │ Installed Version │ Requested Version │\n├───────────────────────────────┼───────────────────┼───────────────────┤\n│ @angular-devkit/build-angular │ 21.2.14           │ ^21.2.14          │\n│ @angular/build                │ 21.2.14           │ ^21.2.14          │\n│ @angular/cli                  │ 21.2.14           │ 21.2.14           │\n│ @angular/common               │ 21.2.17           │ 21.2.17           │\n│ @angular/compiler             │ 21.2.17           │ 21.2.17           │\n│ @angular/compiler-cli         │ 21.2.17           │ 21.2.17           │\n│ @angular/core                 │ 21.2.17           │ 21.2.17           │\n│ @angular/forms                │ 21.2.17           │ 21.2.17           │\n│ @angular/language-service     │ 21.2.17           │ 21.2.17           │\n│ @angular/localize             │ 21.2.17           │ ^21.2.17          │\n│ @angular/platform-browser     │ 21.2.17           │ 21.2.17           │\n│ @angular/router               │ 21.2.17           │ 21.2.17           │\n│ @angular/service-worker       │ 21.2.17           │ 21.2.17           │\n│ rxjs                          │ 7.8.2             │ ^7.8.2            │\n│ typescript                    │ 5.9.3             │ 5.9.3             │\n│ zone.js                       │ 0.16.2            │ ~0.16.2           │\n└───────────────────────────────┴───────────────────┴───────────────────┘\n```\n\n### Anything else?\n\nBecause TypedOptionDirective is not imported, the template compiler should evaluate [auiTypedOption] as a plain property binding on a div element. Since HTMLDivElement does not have a auiTypedOption property, strictTemplates should catch this and throw:\nNG8002: Can't bind to 'auiTypedOption' since it isn't a known property of 'div'.","author":{"url":"https://github.com/sysmat","@type":"Person","name":"sysmat"},"datePublished":"2026-06-12T05:28:39Z","url":"https://github.com/angular/angular/issues/69322"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:75de99e9-b513-87de-7543-9488bb4ab032
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE794:2DBB21:109BB4F:16253B6:6B01177B
html-safe-nonce821598a97d7d49bcf3105bcb5a3f39c61b94a803b13e774bbe9c8a4345343385
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzk0OjJEQkIyMToxMDlCQjRGOjE2MjUzQjY6NkIwMTE3N0IiLCJ2aXNpdG9yX2lkIjoiODQzMTE4MzEzNjQyNzE1MzI3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8500756b515852853e03abd886aad298a5737641f22c2bed89d4c91ad7e65721
hovercard-subject-tagissue:4646593377
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/69322/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5b5d9d82224f6d9cd08c2566f5f8bd32c3b87a4792a830eb28f2580f194953e2/angular/angular/issues/69322
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5b5d9d82224f6d9cd08c2566f5f8bd32c3b87a4792a830eb28f2580f194953e2/angular/angular/issues/69322
og:image:altWhich @angular/* package(s) are the source of the bug? compiler Is this a regression? Yes Description When using a standalone attribute directive in a template via property binding syntax (e.g., [m...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesysmat
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/69322#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F69322
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F69322
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/69322
Reloadhttps://github.com/angular/angular/issues/69322
Reloadhttps://github.com/angular/angular/issues/69322
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/69322
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/69322
#69640https://github.com/angular/angular/pull/69640
Compiler doesn't report missing import for a directive applied on ng-templatehttps://github.com/angular/angular/issues/69322#top
#69640https://github.com/angular/angular/pull/69640
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/sysmat
sysmathttps://github.com/sysmat
on Jun 12, 2026https://github.com/angular/angular/issues/69322#issue-4646593377
Nexthttps://github.com/angular/angular/issues/69322?timeline_page=1
angular-robothttps://github.com/apps/angular-robot
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
gemini-triagedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22gemini-triaged%22
on Jun 12, 2026https://github.com/angular/angular/issues/69322#event-26659384671
angular-robothttps://github.com/apps/angular-robot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jun 12, 2026https://github.com/angular/angular/issues/69322#event-26659385517
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jun 12, 2026https://github.com/angular/angular/issues/69322#event-26659385577
https://github.com/kle-pra
kle-prahttps://github.com/kle-pra
on Jun 12, 2026https://github.com/angular/angular/issues/69322#issuecomment-4687996866
JeanMechehttps://github.com/JeanMeche
not plannedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Jun 12, 2026https://github.com/angular/angular/issues/69322#event-26666788589
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Jun 12, 2026https://github.com/angular/angular/issues/69322#issuecomment-4689430988
JeanMechehttps://github.com/JeanMeche
on Jun 12, 2026https://github.com/angular/angular/issues/69322#event-26666858099
JeanMechehttps://github.com/JeanMeche
needs reproductionThis issue needs a reproduction in order for the team to investigate furtherhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22needs%20reproduction%22
on Jun 12, 2026https://github.com/angular/angular/issues/69322#event-26666863899
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Jun 12, 2026https://github.com/angular/angular/issues/69322#event-26666871097
https://github.com/sysmat
sysmathttps://github.com/sysmat
on Jun 13, 2026https://github.com/angular/angular/issues/69322#issuecomment-4697919594
@JeanMechehttps://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Jun 15, 2026https://github.com/angular/angular/issues/69322#event-26758128307
JeanMechehttps://github.com/JeanMeche
needs reproductionThis issue needs a reproduction in order for the team to investigate furtherhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22needs%20reproduction%22
gemini-triagedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22gemini-triaged%22
on Jun 15, 2026https://github.com/angular/angular/issues/69322#event-26758130068
JeanMechehttps://github.com/JeanMeche
on Aug 29, 2026https://github.com/angular/angular/issues/69322#event-30219918775
fix(compiler): report unknown property bindings on explicit ng-templa…https://github.com/aparzi/angular/commit/baeffad581f1fd30d2898d5be9055a4c5b7cb904
https://docs.github.com/articles/closing-issues-via-commit-messages
baeffadhttps://github.com/aparzi/angular/commit/baeffad581f1fd30d2898d5be9055a4c5b7cb904
JeanMechehttps://github.com/JeanMeche
on Sep 14, 2026https://github.com/angular/angular/issues/69322#event-31087972763
fix(compiler): report unknown property bindings on explicit ng-templa…https://github.com/aparzi/angular/commit/be807340243d8819b676cda0ac99190fabd8ebab
https://docs.github.com/articles/closing-issues-via-commit-messages
be80734https://github.com/aparzi/angular/commit/be807340243d8819b676cda0ac99190fabd8ebab
aparzihttps://github.com/aparzi
on Sep 30, 2026https://github.com/angular/angular/issues/69322#event-32179181888
fix(compiler): report unknown property bindings on explicit ng-templa…https://github.com/aparzi/angular/commit/c7ab8adb9468c738a201b197d62ceab850d17420
https://docs.github.com/articles/closing-issues-via-commit-messages
c7ab8adhttps://github.com/aparzi/angular/commit/c7ab8adb9468c738a201b197d62ceab850d17420
JeanMechehttps://github.com/JeanMeche
on Oct 25, 2026https://github.com/angular/angular/issues/69322#event-34160460676
fix(compiler): report unknown property bindings on explicit ng-templa…https://github.com/aparzi/angular/commit/98ffc5369e215feaeb8e40df470d06b308a32dc9
https://docs.github.com/articles/closing-issues-via-commit-messages
98ffc53https://github.com/aparzi/angular/commit/98ffc5369e215feaeb8e40df470d06b308a32dc9
fix(compiler): report unknown property bindings on explicit ng-templa…https://github.com/aparzi/angular/commit/bd619edd585e7737fa221c9bb2ac929226525967
https://docs.github.com/articles/closing-issues-via-commit-messages
bd619edhttps://github.com/aparzi/angular/commit/bd619edd585e7737fa221c9bb2ac929226525967
JeanMechehttps://github.com/JeanMeche
on Nov 8, 2026https://github.com/angular/angular/issues/69322#event-35508452043
fix(compiler): report unknown property bindings on explicit ng-templa…https://github.com/aparzi/angular/commit/0eb67784c693f2c0ceefeaa3f2b3668be35342ea
https://docs.github.com/articles/closing-issues-via-commit-messages
0eb6778https://github.com/aparzi/angular/commit/0eb67784c693f2c0ceefeaa3f2b3668be35342ea
fix(compiler): report unknown property bindings on explicit ng-templa…https://github.com/aparzi/angular/commit/a6b95107424d259a0cf5960934542c774035d70a
https://docs.github.com/articles/closing-issues-via-commit-messages
a6b9510https://github.com/aparzi/angular/commit/a6b95107424d259a0cf5960934542c774035d70a
feature(compiler): report unknown property bindings on explicit ng-te…https://github.com/aparzi/angular/commit/4ad60dc707ce5f750d4d81d89ab85cc8ac539fab
https://docs.github.com/articles/closing-issues-via-commit-messages
4ad60dchttps://github.com/aparzi/angular/commit/4ad60dc707ce5f750d4d81d89ab85cc8ac539fab
feat(compiler): report unknown property bindings on explicit ng-templ…https://github.com/aparzi/angular/commit/738837a449374bf8c96e2856e7e4db68275c6e94
https://docs.github.com/articles/closing-issues-via-commit-messages
738837ahttps://github.com/aparzi/angular/commit/738837a449374bf8c96e2856e7e4db68275c6e94
feat(compiler): report unknown property bindings on explicit ng-templ…https://github.com/aparzi/angular/commit/55860b34c9d64f38aad22bcf16e14b28bcb0b2c2
https://docs.github.com/articles/closing-issues-via-commit-messages
55860b3https://github.com/aparzi/angular/commit/55860b34c9d64f38aad22bcf16e14b28bcb0b2c2
feat(compiler): report unknown property bindings on explicit ng-templ…https://github.com/aparzi/angular/commit/49205c8a3107c75008ab14c898796ddfcd2deec7
https://docs.github.com/articles/closing-issues-via-commit-messages
49205c8https://github.com/aparzi/angular/commit/49205c8a3107c75008ab14c898796ddfcd2deec7
feat(compiler): report unknown property bindings on explicit ng-templ…https://github.com/aparzi/angular/commit/7dc15b4104bde3c77cd03523198556d68cbc0e13
https://docs.github.com/articles/closing-issues-via-commit-messages
7dc15b4https://github.com/aparzi/angular/commit/7dc15b4104bde3c77cd03523198556d68cbc0e13
feat(compiler): report unknown property bindings on explicit ng-templ…https://github.com/aparzi/angular/commit/39a5e0daaa4da6f84eab76c9c91cacd686c1da03
https://docs.github.com/articles/closing-issues-via-commit-messages
39a5e0dhttps://github.com/aparzi/angular/commit/39a5e0daaa4da6f84eab76c9c91cacd686c1da03
thePunderWomanhttps://github.com/thePunderWoman
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#69640https://github.com/angular/angular/pull/69640
on Nov 11, 2026https://github.com/angular/angular/issues/69322#event-35854888199
angular-robothttps://github.com/angular-robot
on Nov 11, 2026https://github.com/angular/angular/issues/69322#event-35855632019
feat(compiler): report unknown property bindings on explicit ng-templ…https://github.com/angular-robot/angular/commit/e4f67442bbfc0a7d29793c4ff937a517887bc588
https://docs.github.com/articles/closing-issues-via-commit-messages
e4f6744https://github.com/angular-robot/angular/commit/e4f67442bbfc0a7d29793c4ff937a517887bc588
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/69322
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/69322
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.