Title: SCOPE DESTRUCTION: Leak when asynchronously continuing the linking of directives on scopes that are already destroyed · Issue #9199 · angular/angular.js · GitHub
Open Graph Title: SCOPE DESTRUCTION: Leak when asynchronously continuing the linking of directives on scopes that are already destroyed · Issue #9199 · angular/angular.js
X Title: SCOPE DESTRUCTION: Leak when asynchronously continuing the linking of directives on scopes that are already destroyed · Issue #9199 · angular/angular.js
Description: When a directive uses a templateUrl, this directive is inside an ng-switch or an ng-if and the following events happen in this specific order The html of the ng-switch starts it's compilation The directive inside the ng-switch starts it'...
Open Graph Description: When a directive uses a templateUrl, this directive is inside an ng-switch or an ng-if and the following events happen in this specific order The html of the ng-switch starts it's compilation The d...
X Description: When a directive uses a templateUrl, this directive is inside an ng-switch or an ng-if and the following events happen in this specific order The html of the ng-switch starts it's compilation T...
Opengraph URL: https://github.com/angular/angular.js/issues/9199
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SCOPE DESTRUCTION: Leak when asynchronously continuing the linking of directives on scopes that are already destroyed","articleBody":"When a directive uses a `templateUrl`, this directive is inside an `ng-switch` or an `ng-if` and the following events happen in this specific order\n- The html of the `ng-switch` starts it's compilation\n- The directive inside the `ng-switch` starts it's compilation, the template is requested from the server\n- The synchronous part of the compilation ends\n- The condition on the `ng-switch` changes so the directive should be displayed\n- ng-switch transcludes the content of the `ng-switch-when` (only what it can as the template did not finish loading)\n- The expression at `ng-switch` changes so the directive should not be displayed\n- ng-switch destroys the scope\n- The template finishes loading, the scope (even when it is already destroyed) is added to the `element.data` (here is where we have the leak)\n\nHere is a plunker that shows this\nhttp://plnkr.co/edit/tNMYYHgoebX1Vx0hWZAb?p=preview\n\nNote: This issue is based on a modification of #9197\n","author":{"url":"https://github.com/lgalfaso","@type":"Person","name":"lgalfaso"},"datePublished":"2014-09-21T09:02:32Z","url":"https://github.com/angular/angular.js/issues/9199"}
| 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:90dea4f1-03e0-d567-97e3-30b69072c765 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91EA:1E6531:6BB6B9:98B1B8:6AFDF27D |
| html-safe-nonce | 8bf695e91a03789b0043c2b4d47f3f5fce03bf9a56057c73826e25c966ca6f38 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUVBOjFFNjUzMTo2QkI2Qjk6OThCMUI4OjZBRkRGMjdEIiwidmlzaXRvcl9pZCI6IjgyNTkyNzU3NTE4NDk1ODczMjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | efecb9f5f4647fdb7ab2c6fbef37b2c64f606f707f59aeb2fc6b2f58710a2ab7 |
| hovercard-subject-tag | issue:43330492 |
| 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/9199/issue_layout |
| twitter:image | https://opengraph.githubassets.com/44b508b5ba2b97a831cc204709d358018e37be728548d3d5cf67bd4e1206481d/angular/angular.js/issues/9199 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/44b508b5ba2b97a831cc204709d358018e37be728548d3d5cf67bd4e1206481d/angular/angular.js/issues/9199 |
| og:image:alt | When a directive uses a templateUrl, this directive is inside an ng-switch or an ng-if and the following events happen in this specific order The html of the ng-switch starts it's compilation The d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lgalfaso |
| 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