Title: Changing ng-options datasource is firing the ng-change automatically · Issue #16586 · angular/angular.js · GitHub
Open Graph Title: Changing ng-options datasource is firing the ng-change automatically · Issue #16586 · angular/angular.js
X Title: Changing ng-options datasource is firing the ng-change automatically · Issue #16586 · angular/angular.js
Description: I'm submitting a ... bug report feature request other Current behavior: Changing ng-options underlying datasource is triggering the ng-change handler when underlying ng-model was changed programmatically previously. Expected / new behavi...
Open Graph Description: I'm submitting a ... bug report feature request other Current behavior: Changing ng-options underlying datasource is triggering the ng-change handler when underlying ng-model was changed programmat...
X Description: I'm submitting a ... bug report feature request other Current behavior: Changing ng-options underlying datasource is triggering the ng-change handler when underlying ng-model was changed progra...
Opengraph URL: https://github.com/angular/angular.js/issues/16586
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Changing ng-options datasource is firing the ng-change automatically","articleBody":"**I'm submitting a ...**\r\n\u003c!-- (check one with \"x\") -->\r\n- [x] bug report\r\n- [ ] feature request\r\n- [ ] other\r\n\r\n**Current behavior:**\r\nChanging `ng-options` underlying datasource is triggering the `ng-change` handler when underlying `ng-model` was changed programmatically previously.\r\n\r\n**Expected / new behavior:**\r\nIt should not trigger `ng-change` handler.\r\n\r\n**Minimal reproduction of the problem with instructions:**\r\n\u003ch6>dd1 and dd2 are two independent dropdowns having different ng-options data source containing array of objects.\u003c/h6>\r\n Step 1: Set ng-model for dd2 programmatically by clicking the button. This is not firing the ng-change handler of dd2 which is correct.\u003c/p>\r\n Step 2: Now change the dd1. Inside dd1 change handler assign new array data source to dd2 ng-options. \r\n This is automatically triggering the ng-change of dd2.\r\n\r\nDemo link: https://plnkr.co/edit/mI44WPHmlPf5B6Sdpbxr?p=preview\r\n\r\n**AngularJS version:** 1.6.9\r\n>Issue still exists in the most recent stable version 1.7.0 and in the snapshot AngularJS 1.7.1-build.26050+sha.0b1adbb\r\n\r\n**Browser:** [all | Chrome 66 | Edge 40 | IE 11 ]\r\n","author":{"url":"https://github.com/amiteshhh","@type":"Person","name":"amiteshhh"},"datePublished":"2018-06-01T07:21:04Z","url":"https://github.com/angular/angular.js/issues/16586"}
| 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:a11470e9-10b3-d165-5347-a1a1c497bcf8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1EE:139DD7:12F604:1A342C:6AFD8BAE |
| html-safe-nonce | 25ca5caaa8c3439a492d1325f46793a628cbfdd893958dcaf7e161affbdbf323 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUVFOjEzOURENzoxMkY2MDQ6MUEzNDJDOjZBRkQ4QkFFIiwidmlzaXRvcl9pZCI6IjQwNDQ0MTM1MjE1MjAwNjk1NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ed5c1bd935812678311d576c4c665318f698731015d8e3ae08223606c9bcf5df |
| hovercard-subject-tag | issue:328408420 |
| 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/16586/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f0f2fb2e34f7e63d73580d78628c8516b6d13f287e143c504dbf9b5826f69117/angular/angular.js/issues/16586 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f0f2fb2e34f7e63d73580d78628c8516b6d13f287e143c504dbf9b5826f69117/angular/angular.js/issues/16586 |
| og:image:alt | I'm submitting a ... bug report feature request other Current behavior: Changing ng-options underlying datasource is triggering the ng-change handler when underlying ng-model was changed programmat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amiteshhh |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| 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 | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width