Title: Using ++ and -- in Angular expressions · Issue #32882 · angular/angular · GitHub
Open Graph Title: Using ++ and -- in Angular expressions · Issue #32882 · angular/angular
X Title: Using ++ and -- in Angular expressions · Issue #32882 · angular/angular
Description: 🚀 feature request Relevant Package This request is for the compiler Description I just realized that using ++ or -- operators directly in a (click) binding, doesn't work. Blitz here: https://stackblitz.com/edit/angular-34xtgk ng v output...
Open Graph Description: 🚀 feature request Relevant Package This request is for the compiler Description I just realized that using ++ or -- operators directly in a (click) binding, doesn't work. Blitz here: https://stackb...
X Description: 🚀 feature request Relevant Package This request is for the compiler Description I just realized that using ++ or -- operators directly in a (click) binding, doesn't work. Blitz here: https://st...
Opengraph URL: https://github.com/angular/angular/issues/32882
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using ++ and -- in Angular expressions","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄 \r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->\r\n\r\n\r\n# 🚀 feature request\r\n\r\n### Relevant Package\r\n\u003c!-- Can you pin-point one or more @angular/* packages the are relevant for this feature request? -->\r\n\u003c!-- ✍️edit: --> \r\nThis request is for the **compiler**\r\n\r\n\r\n### Description\r\n\u003c!-- ✍️--> \r\nI just realized that using `++` or `--` operators directly in a `(click)` binding, doesn't work.\r\n\r\nBlitz here: [https://stackblitz.com/edit/angular-34xtgk](Blitz)\r\n\r\n`ng v` output (first lines)\r\n\r\nAngular CLI: 7.2.0\r\nNode: 10.14.2\r\nOS: win32 x64\r\nAngular: 7.2.0\r\n\r\n### Describe the solution you'd like\r\n\u003c!-- ✍️--> \r\nI'd like to write like this. If I remember correctly it worked in AngularJS (ng-click).\r\n\r\n```\r\n\u003cbutton (click)=\"count++\">\r\nADD\r\n\u003c/button>\r\n```\r\n\r\n### Describe alternatives you've considered\r\n\u003c!-- ✍️--> Have you considered any alternative solutions or workarounds?\r\nWell, the alternatives are not as concise as the code above.\r\nBut of course it's possibile to overcome this limit.\r\n\r\n","author":{"url":"https://github.com/tonysamperi","@type":"Person","name":"tonysamperi"},"datePublished":"2019-09-27T13:34:08Z","url":"https://github.com/angular/angular/issues/32882"}
| 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:40789373-e40b-fa4a-1678-fbf88dba52d9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D838:311EEE:1293165:18A4EBD:6B011BC2 |
| html-safe-nonce | 48e39cc2c964031f99b24ba293e6af962c060d7bd93e9a94f5891ece32dc6108 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODM4OjMxMUVFRToxMjkzMTY1OjE4QTRFQkQ6NkIwMTFCQzIiLCJ2aXNpdG9yX2lkIjoiMTQyMDY0NzA5ODc5NzMzMzQ0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5885ad066d0429c19667137b67a368cc432aef57b1055325e3741dccc392e75c |
| hovercard-subject-tag | issue:499449816 |
| 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/32882/issue_layout |
| twitter:image | https://opengraph.githubassets.com/785e66455afd84eb3149841f84e5c610298f405ce064a9dd4f5b3100d43d19b1/angular/angular/issues/32882 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/785e66455afd84eb3149841f84e5c610298f405ce064a9dd4f5b3100d43d19b1/angular/angular/issues/32882 |
| og:image:alt | 🚀 feature request Relevant Package This request is for the compiler Description I just realized that using ++ or -- operators directly in a (click) binding, doesn't work. Blitz here: https://stackb... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tonysamperi |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width