René's URL Explorer Experiment


Title: Angular 22 compatibility, EventData types are not correctly inferred from templates · Issue #170 · NativeScript/angular · GitHub

Open Graph Title: Angular 22 compatibility, EventData types are not correctly inferred from templates · Issue #170 · NativeScript/angular

X Title: Angular 22 compatibility, EventData types are not correctly inferred from templates · Issue #170 · NativeScript/angular

Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): ✔ Component nativescript has 9.0.6 version and i...

Open Graph Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): ✔ Compon...

X Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): ✔ Compon...

Opengraph URL: https://github.com/NativeScript/angular/issues/170

X: @github

direct link

Domain: Github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular 22 compatibility, EventData types are not correctly inferred from templates","articleBody":"**Environment**\nProvide version numbers for the following components (information can be retrieved by running `tns info` in your project folder or by inspecting the `package.json` of the project):\n\n✔ Component nativescript has 9.0.6 version and is up to date.\n✔ Component @nativescript/core has 9.0.20 version and is up to date.\n✔ Component @nativescript/ios has 9.0.3 version and is up to date.\n✔ Component @nativescript/android has 9.0.4 version and is up to date.\n\n                \"@angular/animations\": \"22.0.1\",\n\t\t\"@angular/common\": \"22.0.1\",\n\t\t\"@angular/compiler\": \"22.0.1\",\n\t\t\"@angular/core\": \"22.0.1\",\n\t\t\"@angular/forms\": \"22.0.1\",\n\t\t\"@angular/platform-browser\": \"22.0.1\",\n\t\t\"@angular/platform-browser-dynamic\": \"22.0.1\",\n\t\t\"@angular/router\": \"22.0.1\",\n \t\t\"@angular-devkit/build-angular\": \"22.0.1\",\n\t\t\"@angular/build\": \"22.0.1\",\n\t\t\"@ngtools/webpack\": \"22.0.1\",\n\t\t\"typescript\": \"6.0.3\",\n\t\t\"@nativescript/angular\": \"22.0.0-dev.0\",\n\t\t\"@nativescript/core\": \"9.0.20\",\n\t\t\"@nativescript/iqkeyboardmanager\": \"3.0.0\",\n\t\t\"@nativescript/localize\": \"5.2.0\",\n\t\t\"@nativescript/secure-storage\": \"4.0.1\",\n\t\t\"@nativescript/theme\": \"3.1.0\",\n\t\t\"rxjs\": \"7.8.2\",\n\t\t\"sass\": \"1.100.0\",\n\t\t\"typescript\": \"6.0.3\"\n**Describe the bug**\nWith the Angular 22 type checking I see 2 compatibility problems, both related to template checks. I need to say, my app is running perfectly fine. The problems I am seeing are from type checking only!\n\n1. this can be seen when activating \n\"angularCompilerOptions\": {\"strictDomEventTypes\": true}\n\nIt seems like angular cannot narrow down parameter types.  I get about 400 errors related to the usage of $event in method calls. it is everywhere interpretet as Event rather than the related Nativescript EventData or derived type.. Below some examples to understand the pattern\n\nerror TS2345: Argument of type 'Event' is not assignable to parameter of type 'EventData'.\n  Type 'Event' is missing the following properties from type 'EventData': eventName, object\n2  (shouldOverrideUrlLoading)=\"onOverrideUrlLoading($event)\" (loaded)=\"onPlayerLoaded($event)\" iosAllowInlineMediaPlayback=\"true\" backgroundColor=\"black\"\u003e\n\nERROR in src/app/modules/selection/pages/add-edit-meal/add-edit-meal.component.html:35:105 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'EventData'.\n  Type 'Event' is missing the following properties from type 'EventData': eventName, object\n35     (textChange)=\"onCheckMealChange($event)\" class=\"text-field recipe-field\" (tap)=\"onTextFieldSetFocus($event)\"\u003e\n\n--------------------------------------\n\n2. Second problem can be seen when activating\n\"angularCompilerOptions\": {\"strictDomEventTypes\": false,}\n\"strictDomLocalRefTypes\": true,\n\nWhen I try to use a template reference in a function\n\u003cLabel #idElement (tap)=\"myFunction(idElement)\"\u003e\u003c/Label\u003e\nand  want to use it in component as\npublic myFunction(arg:View){...}\n\nI get the error\nArgument of type 'HTMLElement' is not assignable to parameter of type 'View'.\n\n\n","author":{"url":"https://github.com/cjohn001","@type":"Person","name":"cjohn001"},"datePublished":"2026-06-13T15:50:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/170/angular/issues/170"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1f61f58b-8f6c-c3f7-13e3-c4c8026e9bfa
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id94DE:12EAEE:391836:529556:6A636C7A
html-safe-nonce9b177c068f69b93347efb36f293704170ab8870755e08de5c98db5f4fbd74fa1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NERFOjEyRUFFRTozOTE4MzY6NTI5NTU2OjZBNjM2QzdBIiwidmlzaXRvcl9pZCI6IjgyMjY2MTA1MzI2ODg1NTUxMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9858a1c6c551cb66902d78e03997229046275c83703b24e2af29a72b68fd8e59
hovercard-subject-tagissue:4656051490
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/NativeScript/angular/170/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9b60c78f957bfd0bea4aa7b34054b088a14cb701a435941742423293385419d1/NativeScript/angular/issues/170
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9b60c78f957bfd0bea4aa7b34054b088a14cb701a435941742423293385419d1/NativeScript/angular/issues/170
og:image:altEnvironment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): ✔ Compon...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecjohn001
hostnamegithub.com
expected-hostnamegithub.com
Nonee7b5617850fbcd6d10fe2b7c56398444bccb5f3a58a4a18c6d363971295bcd03
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/angular git https://github.com/NativeScript/angular.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id302428305
octolytics-dimension-repository_nwoNativeScript/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id302428305
octolytics-dimension-repository_network_root_nwoNativeScript/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
releaseaa341b3f432dc63fa9633042725aec601722a352
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://Github.com/NativeScript/angular/issues/170#start-of-content
https://Github.com/
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fangular%2Fissues%2F170
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fangular%2Fissues%2F170
Sign up https://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=NativeScript%2Fangular
Reloadhttps://Github.com/NativeScript/angular/issues/170
Reloadhttps://Github.com/NativeScript/angular/issues/170
Reloadhttps://Github.com/NativeScript/angular/issues/170
Please reload this pagehttps://Github.com/NativeScript/angular/issues/170
NativeScript https://Github.com/NativeScript
angularhttps://Github.com/NativeScript/angular
Please reload this pagehttps://Github.com/NativeScript/angular/issues/170
Notifications https://Github.com/login?return_to=%2FNativeScript%2Fangular
Fork 13 https://Github.com/login?return_to=%2FNativeScript%2Fangular
Star 55 https://Github.com/login?return_to=%2FNativeScript%2Fangular
Code https://Github.com/NativeScript/angular
Issues 39 https://Github.com/NativeScript/angular/issues
Pull requests 4 https://Github.com/NativeScript/angular/pulls
Actions https://Github.com/NativeScript/angular/actions
Projects https://Github.com/NativeScript/angular/projects
Security and quality 0 https://Github.com/NativeScript/angular/security
Insights https://Github.com/NativeScript/angular/pulse
Code https://Github.com/NativeScript/angular
Issues https://Github.com/NativeScript/angular/issues
Pull requests https://Github.com/NativeScript/angular/pulls
Actions https://Github.com/NativeScript/angular/actions
Projects https://Github.com/NativeScript/angular/projects
Security and quality https://Github.com/NativeScript/angular/security
Insights https://Github.com/NativeScript/angular/pulse
Angular 22 compatibility, EventData types are not correctly inferred from templateshttps://Github.com/NativeScript/angular/issues/170#top
https://github.com/cjohn001
cjohn001https://github.com/cjohn001
on Jun 13, 2026https://github.com/NativeScript/angular/issues/170#issue-4656051490
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.