Title: False-Positive: Parser Error: Missing expected } at the end of the expression · Issue #9571 · angular/angular · GitHub
Open Graph Title: False-Positive: Parser Error: Missing expected } at the end of the expression · Issue #9571 · angular/angular
X Title: False-Positive: Parser Error: Missing expected } at the end of the expression · Issue #9571 · angular/angular
Description: I'm submitting a ... (check one with "x") [X] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question I have wri...
Open Graph Description: I'm submitting a ... (check one with "x") [X] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/ma...
X Description: I'm submitting a ... (check one with "x") [X] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angula...
Opengraph URL: https://github.com/angular/angular/issues/9571
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"False-Positive: Parser Error: Missing expected } at the end of the expression","articleBody":"**I'm submitting a ...** (check one with \"x\")\r\n\r\n```\r\n[X] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\nI have written a custom pipe (translate). The pipe can be parameterized with an object, e.g.: \r\n```\r\n\u003ch3 id=\"\">{{KEY | translate:{'len': '10'}}}\u003c/h3>\r\n```\r\n\r\n**Current behavior**\r\nNotice that all all opening curly braces were properly closed. Yet, the compiler produces the following template parse error\r\n\r\n```\r\nUncaught (in promise): Template parse errors:\r\nParser Error: Missing expected } at the end of the expression [{{'KEY' | translate:{'arg1': '10'}}}] in HomeComponent@0:10 (\"\u003ch3 id=\"\">[ERROR ->]{{'KEY' | translate:{'arg1': '10'}}}\u003c/h3>): HomeComponent@0:10 Error: Uncaught (in promise): Template parse errors:(…)ConsoleWriter.write @ ConsoleWriter.js:43Rx_1.Subscriber.create._this.write.sourceHint @ ConsoleWriter.js:18SafeSubscriber.__tryOrUnsub @ Subscriber.js:225SafeSubscriber.next @ Subscriber.js:174Subscriber._next @ Subscriber.js:124Subscriber.next @ Subscriber.js:88MapSubscriber._next @ map.js:82Subscriber.next @ Subscriber.js:88Subject._finalNext @ Subject.js:128Subject._next @ Subject.js:120Subject.next @ Subject.js:77message @ LogService.js:47error @ LogService.js:63ExceptionHandler.call @ ExceptionHandler.js:23(anonymous function) @ core.umd.js:9704schedulerFn @ core.umd.js:6651SafeSubscriber.__tryOrUnsub @ Subscriber.js:225SafeSubscriber.next @ Subscriber.js:174Subscriber._next @ Subscriber.js:124Subscriber.next @ Subscriber.js:88Subject._finalNext @ Subject.js:128Subject._next @ Subject.js:120Subject.next @ Subject.js:77EventEmitter.emit @ core.umd.js:6639NgZone._zoneImpl.NgZoneImpl.onError @ core.umd.js:9153NgZoneImpl.inner.inner.fork.onHandleError @ core.umd.js:9025ZoneDelegate.handleError @ zone.js:327Zone.runGuarded @ zone.js:233_loop_1 @ zone.js:487drainMicroTaskQueue @ zone.js:494ZoneTask.invoke @ zone.js:426\r\n```\r\n\r\n**Bug**\r\nIn contrast to what the message tells, all opening curly braces have been properly closed.\r\n\r\n**Workaround**\r\nThe bug can be circumvented by putting a space in front of the closing curly braces:\r\n\r\n```\r\n\u003ch3 id=\"\">{{KEY | translate:{'len': '10'} }}\u003c/h3>\r\n ^^^\r\n```\r\n\r\n**Expected/desired behavior**\r\n\r\nOmitting the space character should not cause a template parse error. \r\n\r\n**Reproduction**\r\n- see also [comment below](https://github.com/angular/angular/issues/9571#issuecomment-625611333) from @pkozlowski-opensource \r\n\r\n**Please tell us about your environment:**\r\n- **Angular version:** 2.0.0-rc.3\r\n- **Browser:** \r\n Chrome 49.0.2623.75 m \r\n- **Language:** [TypeScript 1.8.10] \r\n\r\nI don't remember getting this error in Beta releases.","author":{"url":"https://github.com/about-code","@type":"Person","name":"about-code"},"datePublished":"2016-06-24T14:26:39Z","url":"https://github.com/angular/angular/issues/9571"}
| 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:167984e2-a4f6-338b-4e87-2b419ce1b31a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFC2:16AB79:B7F22B:EAF12C:6B00FA30 |
| html-safe-nonce | e874233dfe909ac53c587415879724c1b6c3ab52a9674abeef730c03e9b3058b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkMyOjE2QUI3OTpCN0YyMkI6RUFGMTJDOjZCMDBGQTMwIiwidmlzaXRvcl9pZCI6IjQ5MTM1MjkzNjM5Mzg0NzQ1NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a3e2a696067fb01aae5a4ed2b7b83f12e1772a65b2a279029b3e1fd696e2a5d0 |
| hovercard-subject-tag | issue:162159077 |
| 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/9571/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d942f132775b5b9b04b7744d356367f6a71fd45f0d2520627aca742bfc4ee894/angular/angular/issues/9571 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d942f132775b5b9b04b7744d356367f6a71fd45f0d2520627aca742bfc4ee894/angular/angular/issues/9571 |
| og:image:alt | I'm submitting a ... (check one with "x") [X] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/ma... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | about-code |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| 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 | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width