René's URL Explorer Experiment


Title: SCOPE DESTRUCTION: Directive scope is never destroyed if immediately switched out and it has templateUrl. · Issue #9197 · angular/angular.js · GitHub

Open Graph Title: SCOPE DESTRUCTION: Directive scope is never destroyed if immediately switched out and it has templateUrl. · Issue #9197 · angular/angular.js

X Title: SCOPE DESTRUCTION: Directive scope is never destroyed if immediately switched out and it has templateUrl. · Issue #9197 · angular/angular.js

Description: AngularJS - HTML enhanced for web apps! Contribute to angular/angular.js development by creating an account on GitHub.

Open Graph Description: AngularJS - HTML enhanced for web apps! Contribute to angular/angular.js development by creating an account on GitHub.

X Description: AngularJS - HTML enhanced for web apps! Contribute to angular/angular.js development by creating an account on GitHub.

Opengraph URL: https://github.com/angular/angular.js

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SCOPE DESTRUCTION: Directive scope is never destroyed if immediately switched out and it has templateUrl.","articleBody":"We have a directive which uses `templateUrl` that is rendered within a `ngSwitch`. There is a scenario where on page load the directive is rendered, but then immediately some conditions change causing `ngSwitch` to remove the directive from page. I found that in that case the directive's scope never gets destroyed.\n\nA Plunker demo is available here - http://plnkr.co/edit/QYnUKQrHA4uivJifsYne?p=preview\n\nIn the demo open browser's JS console. Notice that you will only see '>>>Created' message, but no '>>>Destroyed'. This bug happens only when the directive uses `templateUrl`. If you change the above demo code to use `template` instead then notice the bug is gone.\n\nThe html snippet is:-\n\n```\n\u003cbody ng-controller=\"Main\">\n\u003cdiv>\n  \u003cdiv ng-switch=\"code\">\n    \u003cdiv ng-switch-when=\"red\">\n      \u003cred>\u003c/red>\n    \u003c/div>\n  \u003c/div>\n\u003c/div>\n\u003c/body>\n```\n\nThe controller code is:-\n\n```\ncontroller('Main', function ($scope, $timeout) {\n  $scope.code = 'red';\n  $timeout(function () {\n    $scope.code = 'blue';\n  })\n})\n```\n\nSo as soon as the controller loads, `$scope.code` is set to 'blue' in next digest cycle, causing the directive `red` to appear momentarily.\n\nThe directive code is:-\n\n```\ndirective('red', function () {\n  return {\n    restrict: 'E',\n    replace: true,\n    templateUrl: 'red.html',\n    scope: {},\n    link: function (scope) {\n      console.log('>>>Created');\n      scope.$on('$destroy', function (event) {\n        console.log('>>>Destroyed');\n      })\n    }\n  };\n})\n```\n\nIf I use `template` instead of `templateUrl`, then `$destroy` is called. The `replace: true` or isolated scope are not necessary to replicate this bug.\n","author":{"url":"https://github.com/applegrew","@type":"Person","name":"applegrew"},"datePublished":"2014-09-21T04:39:10Z","url":"https://github.com/angular/angular.js/issues/9197"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:716430db-5d80-957d-2762-4d21a86be221
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE46A:3713AD:34E85:49C54:6AFDFA36
html-safe-nonce1a26c24907969c01553b7991406a75e552859edd12b72a9e3725d9c485d70134
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDZBOjM3MTNBRDozNEU4NTo0OUM1NDo2QUZERkEzNiIsInZpc2l0b3JfaWQiOiI3NDE0OTc0MDgyOTg0MDQ5MjA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbdd46122e17cda9b617a747624f35f82320903aa6125ec4c5b06a203b6e653f2
hovercard-subject-tagrepository:460078
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/angular/angular.js/issues/9197
twitter:imagehttps://opengraph.githubassets.com/1fb96cabe75dcd53decb642c7e3404dd30d5589daaa5c359b9e911fc4688e2cd/angular/angular.js
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1fb96cabe75dcd53decb642c7e3404dd30d5589daaa5c359b9e911fc4688e2cd/angular/angular.js
og:image:altAngularJS - HTML enhanced for web apps! Contribute to angular/angular.js development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneee3343385a977757dd145b28fabf4a119780f2615a5a36c5a89f66c9b3b5616d
turbo-cache-controlno-cache
go-importgithub.com/angular/angular.js git https://github.com/angular/angular.js.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id460078
octolytics-dimension-repository_nwoangular/angular.js
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id460078
octolytics-dimension-repository_network_root_nwoangular/angular.js
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release43ae91995f6e2d5ff7a491f3de438f1f723adeaa
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular.js/issues/9197#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular.js%2Fissues%2F9197
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular.js%2Fissues%2F9197
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=angular%2Fangular.js
Reloadhttps://github.com/angular/angular.js/issues/9197
Reloadhttps://github.com/angular/angular.js/issues/9197
Reloadhttps://github.com/angular/angular.js/issues/9197
https://github.com/angular/angular.js
SCOPE DESTRUCTION: Directive scope is never destroyed if immediately switched out and it has templateUrl.https://github.com/angular/angular.js/issues/9197#top
https://github.com/petebacondarwin
severity: memory leakhttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22severity%3A%20memory%20leak%22
1.3.0-rc.4https://github.com/angular/angular.js/milestone/67
https://github.com/applegrew
applegrewhttps://github.com/applegrew
on Sep 21, 2014https://github.com/angular/angular.js/issues/9197#issue-43326589
http://plnkr.co/edit/QYnUKQrHA4uivJifsYne?p=previewhttp://plnkr.co/edit/QYnUKQrHA4uivJifsYne?p=preview
https://github.com/lgalfaso
lgalfasohttps://github.com/lgalfaso
on Sep 21, 2014https://github.com/angular/angular.js/issues/9197#issuecomment-56291626
https://github.com/lgalfaso
lgalfasohttps://github.com/lgalfaso
on Sep 21, 2014https://github.com/angular/angular.js/issues/9197#issuecomment-56291633
https://github.com/lgalfaso
lgalfasohttps://github.com/lgalfaso
on Sep 21, 2014https://github.com/angular/angular.js/issues/9197#issuecomment-56292957
caitphttps://github.com/caitp
1.3.0-rc.4https://github.com/angular/angular.js/milestone/67
on Sep 24, 2014https://github.com/angular/angular.js/issues/9197#event-169365397
caitphttps://github.com/caitp
severity: memory leakhttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22severity%3A%20memory%20leak%22
on Sep 24, 2014https://github.com/angular/angular.js/issues/9197#event-169365438
caitphttps://github.com/caitp
petebacondarwinhttps://github.com/petebacondarwin
on Sep 24, 2014https://github.com/angular/angular.js/issues/9197#event-169365483
https://github.com/caitp
caitphttps://github.com/caitp
on Sep 24, 2014https://github.com/angular/angular.js/issues/9197#issuecomment-56613062
@petebacondarwinhttps://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on Sep 26, 2014https://github.com/angular/angular.js/issues/9197#event-170648850
lgalfasohttps://github.com/lgalfaso
completedhttps://github.com/angular/angular.js/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
6303c3dhttps://github.com/angular/angular.js/commit/6303c3dcf64685458fc84aa12289f5c9d57f4e47
on Sep 29, 2014https://github.com/angular/angular.js/issues/9197#event-171429186
petebacondarwinhttps://github.com/petebacondarwin
on Sep 29, 2014https://github.com/angular/angular.js/issues/9197#event-171592572
fix($compile): Resolve leak with asynchronous compilationhttps://github.com/petebacondarwin/angular.js/commit/3c8c88ea6005e8f8d34b81bc1d1ce70e2c51d1c0
https://docs.github.com/articles/closing-issues-via-commit-messages
3c8c88ehttps://github.com/petebacondarwin/angular.js/commit/3c8c88ea6005e8f8d34b81bc1d1ce70e2c51d1c0
fix($compile): Resolve leak with asynchronous compilationhttps://github.com/angular/angular.js/commit/5c9c19730526d5df6f16c523e578e5305f3796d0
https://docs.github.com/articles/closing-issues-via-commit-messages
5c9c197https://github.com/angular/angular.js/commit/5c9c19730526d5df6f16c523e578e5305f3796d0
https://github.com/tiff
tiffhttps://github.com/tiff
on Oct 5, 2014https://github.com/angular/angular.js/issues/9197#issuecomment-57954449
commithttps://github.com/angular/angular.js/commit/1f182853d44ac1edfe807db3352dd43483922816
https://github.com/cztomsik
cztomsikhttps://github.com/cztomsik
on Oct 21, 2014https://github.com/angular/angular.js/issues/9197#issuecomment-59943544
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular.js/issues/9197
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular.js/issues/9197
petebacondarwinhttps://github.com/petebacondarwin
severity: memory leakhttps://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22severity%3A%20memory%20leak%22
1.3.0-rc.4https://github.com/angular/angular.js/milestone/67
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.