René's URL Explorer Experiment


Title: 10.2.x fix elements cd on push by gkalpak · Pull Request #39598 · angular/angular · GitHub

Open Graph Title: 10.2.x fix elements cd on push by gkalpak · Pull Request #39598 · angular/angular

X Title: 10.2.x fix elements cd on push by gkalpak · Pull Request #39598 · angular/angular

Description: This is a backport of #39452 to the 10.2.x branch. As with regular Angular components, Angular elements are expected to have their views update when inputs change. Previously, Angular Elements views where not update if the underlying component used the OnPush change detection strategy. This commit fixes this by calling markForCheck() on the component view's ChangeDetectorRef. NOTE: This is similar to how @angular/upgrade does it: angular/packages/upgrade/src/common/src/downgrade_component_adapter.ts Line 146 in 3236ae0 this.viewChangeDetector.markForCheck(); . Fixes #38948. This PR also contains some commit the fix/improve the elements tests (both unit and e2e tests). See individual commits for more details.

Open Graph Description: This is a backport of #39452 to the 10.2.x branch. As with regular Angular components, Angular elements are expected to have their views update when inputs change. Previously, Angular Elements vie...

X Description: This is a backport of #39452 to the 10.2.x branch. As with regular Angular components, Angular elements are expected to have their views update when inputs change. Previously, Angular Elements vie...

Opengraph URL: https://github.com/angular/angular/pull/39598

X: @github

direct link

Domain: github.com

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/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2e8c49b6-d868-0ad5-ea47-8fefa71d5351
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD050:24A0A:3B2387:4A3248:6B010053
html-safe-nonce19ab2d8646f9590d4566d296b4d4f56eca040abf0535aa4d52a63e590c270185
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDUwOjI0QTBBOjNCMjM4Nzo0QTMyNDg6NkIwMTAwNTMiLCJ2aXNpdG9yX2lkIjoiMjczODcyODg1NjM1MjUyMjMyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfeb97aea64746582778618fcad9af9817abbccb3d53b7289d2f8941ea4994cb7
hovercard-subject-tagpull_request:517144609
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/angular/angular/pull/39598/files
twitter:imagehttps://avatars.githubusercontent.com/u/8604205?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/8604205?s=400&v=4
og:image:altThis is a backport of #39452 to the 10.2.x branch. As with regular Angular components, Angular elements are expected to have their views update when inputs change. Previously, Angular Elements vie...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angular/pull/39598/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fpull%2F39598%2Ffiles
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%2Fpull%2F39598%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/pull/39598/files
Reloadhttps://github.com/angular/angular/pull/39598/files
Reloadhttps://github.com/angular/angular/pull/39598/files
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fangular%2Fangular%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fangular%2Fangular%2Fissues%2Fnew%2Fchoose
gkalpakhttps://github.com/gkalpak
angular:10.2.xhttps://github.com/angular/angular/tree/10.2.x
gkalpak:10.2.x-fix-elements-cd-OnPushhttps://github.com/gkalpak/angular/tree/10.2.x-fix-elements-cd-OnPush
Conversation 7 https://github.com/angular/angular/pull/39598
Commits 5 https://github.com/angular/angular/pull/39598/commits
Checks 0 https://github.com/angular/angular/pull/39598/checks
Files changed https://github.com/angular/angular/pull/39598/files
Please reload this pagehttps://github.com/angular/angular/pull/39598/files
10.2.x fix elements cd on push https://github.com/angular/angular/pull/39598/files#top
Show all changes 5 commits https://github.com/angular/angular/pull/39598/files
54c3d86 test(elements): fix typo in test description (`even if when` --> `eve… gkalpak Nov 4, 2020 https://github.com/angular/angular/pull/39598/commits/54c3d8620a40098f644dbf2865fb382193ca5e9b
f3148b6 test(elements): simplify creation of `FakeComponentFactory#componentR… gkalpak Nov 4, 2020 https://github.com/angular/angular/pull/39598/commits/f3148b64efebe3407015a0615402c2fbca4a7407
e797be9 test(elements): fix `ComponentNgElementStrategy` test for components … gkalpak Nov 4, 2020 https://github.com/angular/angular/pull/39598/commits/e797be92b8be9a8e3a892e67055aaf84de0e95bd
d993145 test(elements): add integration tests for Angular Elements using `Sha… gkalpak Nov 4, 2020 https://github.com/angular/angular/pull/39598/commits/d99314588602d5649b94a8257d7cd9ebb07f6054
6c8ff36 fix(elements): update the view of an `OnPush` component when inputs c… gkalpak Nov 4, 2020 https://github.com/angular/angular/pull/39598/commits/6c8ff361440b20564e1782c242b068e7f5ee0666
Clear filters https://github.com/angular/angular/pull/39598/files
Please reload this pagehttps://github.com/angular/angular/pull/39598/files
Please reload this pagehttps://github.com/angular/angular/pull/39598/files
aio-payloads.json https://github.com/angular/angular/pull/39598/files#diff-e2b56a8887060da860385c929e59d0f78a3acd9c6bdf5106253e105368281858
app.e2e-spec.ts https://github.com/angular/angular/pull/39598/files#diff-bd3c9ea55ee526a553bc66d7045de128bd8af4256a7d4021f8e04cbb4d556f17
app.ts https://github.com/angular/angular/pull/39598/files#diff-8b3b515a0f4b90e05c01b505e03d7d3604ec2ba51d21eeae92e9bc98e4d3382f
elements.ts https://github.com/angular/angular/pull/39598/files#diff-2f3427bcd8ffb10857ba92d3953f0f1c82d8acc450211a5048acfb0b1fb93c0a
hello-world.html https://github.com/angular/angular/pull/39598/files#diff-033a149c27e8fe4e33f40a1aa305b6a20c90ee7c39b9ed3e80200be0c27b9e90
main.ts https://github.com/angular/angular/pull/39598/files#diff-7349229e3ae08bac12e4ff938624b5874c1101357ef2db365b75c5f4c7b04e11
component-factory-strategy.ts https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
component-factory-strategy_spec.ts https://github.com/angular/angular/pull/39598/files#diff-6d1310555f071b36cc7d0d0252cd276db348308ab47a339aed82ba149e3fd1ce
create-custom-element_spec.ts https://github.com/angular/angular/pull/39598/files#diff-925ba1e98dda46b62eb16a77f04ed6fda9260888435d03405f767d9995518501
goldens/size-tracking/aio-payloads.jsonhttps://github.com/angular/angular/pull/39598/files#diff-e2b56a8887060da860385c929e59d0f78a3acd9c6bdf5106253e105368281858
View file https://github.com/gkalpak/angular/blob/6c8ff361440b20564e1782c242b068e7f5ee0666/goldens/size-tracking/aio-payloads.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular/pull/39598/{{ revealButtonHref }}
https://github.com/angular/angular/pull/39598/files#diff-e2b56a8887060da860385c929e59d0f78a3acd9c6bdf5106253e105368281858
gkalpakhttps://github.com/gkalpak
Nov 7, 2020https://github.com/angular/angular/pull/39598/files#r519192302
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
447636https://circleci.com/gh/angular/angular/852592
447914https://circleci.com/gh/angular/angular/852745
Please reload this pagehttps://github.com/angular/angular/pull/39598/files
sck-ogrrhttps://github.com/sck-ogrr
Nov 15, 2020https://github.com/angular/angular/pull/39598/files#r523811849
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/angular/angular/pull/39598/files
https://github.com/angular/angular/pull/39598/files#diff-e2b56a8887060da860385c929e59d0f78a3acd9c6bdf5106253e105368281858
gkalpakhttps://github.com/gkalpak
Nov 7, 2020https://github.com/angular/angular/pull/39598/files#r519192312
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
431703https://circleci.com/gh/angular/angular/852589
431981https://circleci.com/gh/angular/angular/852748
Please reload this pagehttps://github.com/angular/angular/pull/39598/files
https://github.com/angular/angular/pull/39598/files#diff-e2b56a8887060da860385c929e59d0f78a3acd9c6bdf5106253e105368281858
integration/ng_elements/e2e/app.e2e-spec.tshttps://github.com/angular/angular/pull/39598/files#diff-bd3c9ea55ee526a553bc66d7045de128bd8af4256a7d4021f8e04cbb4d556f17
View file https://github.com/gkalpak/angular/blob/6c8ff361440b20564e1782c242b068e7f5ee0666/integration/ng_elements/e2e/app.e2e-spec.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular/pull/39598/{{ revealButtonHref }}
integration/ng_elements/src/app.tshttps://github.com/angular/angular/pull/39598/files#diff-8b3b515a0f4b90e05c01b505e03d7d3604ec2ba51d21eeae92e9bc98e4d3382f
View file https://github.com/gkalpak/angular/blob/6c8ff361440b20564e1782c242b068e7f5ee0666/integration/ng_elements/src/app.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular/pull/39598/{{ revealButtonHref }}
https://github.com/angular/angular/pull/39598/files#diff-8b3b515a0f4b90e05c01b505e03d7d3604ec2ba51d21eeae92e9bc98e4d3382f
https://github.com/angular/angular/pull/39598/files#diff-8b3b515a0f4b90e05c01b505e03d7d3604ec2ba51d21eeae92e9bc98e4d3382f
integration/ng_elements/src/elements.tshttps://github.com/angular/angular/pull/39598/files#diff-2f3427bcd8ffb10857ba92d3953f0f1c82d8acc450211a5048acfb0b1fb93c0a
View file https://github.com/gkalpak/angular/blob/6c8ff361440b20564e1782c242b068e7f5ee0666/integration/ng_elements/src/elements.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular/pull/39598/{{ revealButtonHref }}
https://github.com/angular/angular/pull/39598/files#diff-2f3427bcd8ffb10857ba92d3953f0f1c82d8acc450211a5048acfb0b1fb93c0a
integration/ng_elements/src/hello-world.htmlhttps://github.com/angular/angular/pull/39598/files#diff-033a149c27e8fe4e33f40a1aa305b6a20c90ee7c39b9ed3e80200be0c27b9e90
View file https://github.com/gkalpak/angular/blob/6c8ff361440b20564e1782c242b068e7f5ee0666/integration/ng_elements/src/hello-world.html
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular/pull/39598/{{ revealButtonHref }}
https://github.com/angular/angular/pull/39598/files#diff-033a149c27e8fe4e33f40a1aa305b6a20c90ee7c39b9ed3e80200be0c27b9e90
integration/ng_elements/src/main.tshttps://github.com/angular/angular/pull/39598/files#diff-7349229e3ae08bac12e4ff938624b5874c1101357ef2db365b75c5f4c7b04e11
View file https://github.com/gkalpak/angular/blob/6c8ff361440b20564e1782c242b068e7f5ee0666/integration/ng_elements/src/main.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular/pull/39598/{{ revealButtonHref }}
https://github.com/angular/angular/pull/39598/files#diff-7349229e3ae08bac12e4ff938624b5874c1101357ef2db365b75c5f4c7b04e11
packages/elements/src/component-factory-strategy.tshttps://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
View file https://github.com/gkalpak/angular/blob/6c8ff361440b20564e1782c242b068e7f5ee0666/packages/elements/src/component-factory-strategy.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular/pull/39598/{{ revealButtonHref }}
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
https://github.com/angular/angular/pull/39598/files#diff-7bcc24b51955f1d99c62d70e833c71b0d92e5ec667c767c8caca9730cc78c1f9
Please reload this pagehttps://github.com/angular/angular/pull/39598/files
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.