Title: ng-model-options=“{timezone: 'utc'}” resetting the ng-model value when a bootbox confirm modal is opened · Issue #41 · angular/code.angularjs.org · GitHub
Open Graph Title: ng-model-options=“{timezone: 'utc'}” resetting the ng-model value when a bootbox confirm modal is opened · Issue #41 · angular/code.angularjs.org
X Title: ng-model-options=“{timezone: 'utc'}” resetting the ng-model value when a bootbox confirm modal is opened · Issue #41 · angular/code.angularjs.org
Description: I am using ng-model-options="{timezone: 'utc'}" to show my date in UTC format throughout.But on the same screen I have a button which opens a modal of bootbox and when that is opened the ng-model gets cleared.This is strange as there is ...
Open Graph Description: I am using ng-model-options="{timezone: 'utc'}" to show my date in UTC format throughout.But on the same screen I have a button which opens a modal of bootbox and when that is opened the ng-model g...
X Description: I am using ng-model-options="{timezone: 'utc'}" to show my date in UTC format throughout.But on the same screen I have a button which opens a modal of bootbox and when that is ope...
Opengraph URL: https://github.com/angular/code.angularjs.org/issues/41
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng-model-options=“{timezone: 'utc'}” resetting the ng-model value when a bootbox confirm modal is opened","articleBody":"I am using `ng-model-options=\"{timezone: 'utc'}\"` to show my date in UTC format throughout.But on the same screen I have a button which opens a modal of bootbox and when that is opened the ng-model gets cleared.This is strange as there is no mention of the date in that function.Below is the code.Thanks in advance.\r\n\r\n ```\r\n \u003cinput ng-model-options=\"{timezone: 'utc'}\"\r\n type=\"text\" name=\"creationDate\" class=\"form-control req\" uib-datepicker-popup=\"{{format}}\" is-open=\"popup2.open\" datepicker-options=\"dateOptions1\" placeholder=\"{{vm.user.creationDate | date:'dd/MM/yyyy' : 'UTC'}}\" ng-model=\"vm.user.creationDate\" ng-init=\"vm.user.creationDate = vm.user1.creationDate\" ng-change=\"vm.maturity(vm.user.creationDate, 'creationDate')\" close-text=\"Close\" alt-input-formats=\"altInputFormats\" readonly=\"readonly\" required /\u003e\r\n```\r\n\r\nand the bootbox code:\r\n\r\n ```\r\n bootbox.confirm(\"Are you sure want to delete Test?\", function (result) {\r\n console.log(vm.user);\r\n if (result == false) {\r\n return;\r\n } else {\r\n let data = Object.assign({}, vm.user);\r\n data.exposureId = vm.user1._id;\r\n data.amount = (data.amount + \"\").split(',').join('');\r\n UserService.DeleteTest(data).then(response =\u003e {\r\n console.log(response);\r\n vm.message = response.message;\r\n vm.show = true;\r\n $scope.isChecked = false;\r\n $timeout(function () {\r\n $scope.isChecked = true;\r\n }, 4000);\r\n });\r\n }\r\n });\r\n\r\n\r\n```","author":{"url":"https://github.com/akshayfin","@type":"Person","name":"akshayfin"},"datePublished":"2019-10-09T10:15:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/41/code.angularjs.org/issues/41"}
| 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:03dca90c-db72-6fb0-cf32-dda408058cab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB8E:2D14CF:120977F:1938291:6970CCAA |
| html-safe-nonce | 3f61864e8b959a12c05b14176c5ead4e98b6adcda55d0e8c01dfbbcec31afc3d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjhFOjJEMTRDRjoxMjA5NzdGOjE5MzgyOTE6Njk3MENDQUEiLCJ2aXNpdG9yX2lkIjoiNDAwODkyNjIxNjc3MTkxNDkyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 865f2b03bf21c23dedcbfdfbb84206089782e22755e91ed1d3463771250d1273 |
| hovercard-subject-tag | issue:504552017 |
| 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/code.angularjs.org/41/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2bb6b364e5d6840862dc9d133aaa7dafe6c4dae334eda549fa5af2d2190bc7df/angular/code.angularjs.org/issues/41 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2bb6b364e5d6840862dc9d133aaa7dafe6c4dae334eda549fa5af2d2190bc7df/angular/code.angularjs.org/issues/41 |
| og:image:alt | I am using ng-model-options="{timezone: 'utc'}" to show my date in UTC format throughout.But on the same screen I have a button which opens a modal of bootbox and when that is opened the ng-model g... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | akshayfin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 721764876e433c894814212f8100f6610f1dde78a987acc2e385d8be8e170e9c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/code.angularjs.org git https://github.com/angular/code.angularjs.org.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 5598310 |
| octolytics-dimension-repository_nwo | angular/code.angularjs.org |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 5598310 |
| octolytics-dimension-repository_network_root_nwo | angular/code.angularjs.org |
| 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 | 6ff3d08f4ee1c3f89ebedf4df8fc8fe851190294 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width