Title: ng-options track by and select as are not compatible · Issue #6564 · angular/angular.js · GitHub
Open Graph Title: ng-options track by and select as are not compatible · Issue #6564 · angular/angular.js
X Title: ng-options track by and select as are not compatible · Issue #6564 · angular/angular.js
Description: When both a track by expression and a select as expression are used in ng-options, binding doesn't work anymore. For instance: it('should bind to scope value through experession while tracking/identifying objects', function() { createSel...
Open Graph Description: When both a track by expression and a select as expression are used in ng-options, binding doesn't work anymore. For instance: it('should bind to scope value through experession while tracking/iden...
X Description: When both a track by expression and a select as expression are used in ng-options, binding doesn't work anymore. For instance: it('should bind to scope value through experession while track...
Opengraph URL: https://github.com/angular/angular.js/issues/6564
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng-options track by and select as are not compatible","articleBody":"When both a track by expression and a select as expression are used in ng-options, binding doesn't work anymore.\n\nFor instance:\n\n``` JavaScript\n it('should bind to scope value through experession while tracking/identifying objects', function() {\n createSelect({\n 'ng-model': 'selected',\n 'ng-options': 'item.id as item.name for item in values track by item.id'\n });\n\n scope.$apply(function() {\n scope.values = [{id: 10, name: 'A'}, {id: 20, name: 'B'}];\n scope.selected = scope.values[0].id;\n });\n\n expect(element.val()).toEqual('10');\n\n scope.$apply(function() {\n scope.selected = scope.values[1].id;\n });\n\n expect(element.val()).toEqual('20');\n });\n```\n\nIt seems that in the ngOptions directive, the track function always directly use the value expression even if a select as expression is set.\n","author":{"url":"https://github.com/damiengenet","@type":"Person","name":"damiengenet"},"datePublished":"2014-03-06T02:37:28Z","url":"https://github.com/angular/angular.js/issues/6564"}
| 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:434d119b-4c7e-f3fa-75a7-231266af370e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8134:13BB02:7D674F:ACB6B2:6AFDF0D1 |
| html-safe-nonce | c6271824744668f6570c54252cc9e11628e9eba6a825d1fb6d8593373159c7fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTM0OjEzQkIwMjo3RDY3NEY6QUNCNkIyOjZBRkRGMEQxIiwidmlzaXRvcl9pZCI6IjM0Mzg5OTczNzUzMTIzMjY4NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a134522e9d3db5621253a584e04c32e98ef4c9beeb2770402240e0fdb4dd079e |
| hovercard-subject-tag | issue:28845579 |
| 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.js/6564/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2407d06313973b811efbd1d35222d2161cd72fb00c31be927dec7070817d508b/angular/angular.js/issues/6564 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2407d06313973b811efbd1d35222d2161cd72fb00c31be927dec7070817d508b/angular/angular.js/issues/6564 |
| og:image:alt | When both a track by expression and a select as expression are used in ng-options, binding doesn't work anymore. For instance: it('should bind to scope value through experession while tracking/iden... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | damiengenet |
| hostname | github.com |
| expected-hostname | github.com |
| None | dd812ec581ecac95855f5ec917ef9827506c39a9da1443f43ddb4179a46471eb |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular.js git https://github.com/angular/angular.js.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 460078 |
| octolytics-dimension-repository_nwo | angular/angular.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 460078 |
| octolytics-dimension-repository_network_root_nwo | angular/angular.js |
| 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 | 32ac708bac264dafdc28e10ff49b4d137f0c34a7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width