, the enter animation doesn't work for the first item, even if the template is in $templateCache. ...
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enter/leave animation not working for for first item in ng-repeat","articleBody":"If an element has both ng-repeat and a directive that uses templateUrl `\u003cdiv my-dir ng-repeat=\"...\">`, the enter animation doesn't work for the first item, even if the template is in $templateCache.\r\n\r\n[Demo](http://plnkr.co/edit/j86chAryADuQsSM8ctte?p=preview)\r\n\r\nIf you don't pre-warm the $templateCache, the leave animation doesn't work either. You can comment out the run block in the demo to see this.\r\n\r\nIf the directive is on a child element, the problem goes away, and all animations work. And if fetching the template is fast enough, enter and leave animations both work from a cold cache.\r\n\r\n \u003cdiv ng-repeat=\"x in y\"> \u003cdiv my-dir>\u003c/div> \u003c/div>\r\n\r\nI tested this in Angular 1.5.8 and 1.6.0, with Chrome 54, Safari 10, and Firefox 50.\r\n\r\n@gkalpak suggested I make this ticket in #12612.","author":{"url":"https://github.com/cvn","@type":"Person","name":"cvn"},"datePublished":"2016-12-14T19:54:43Z","url":"https://github.com/angular/angular.js/issues/15510"}
| 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:dce1a5d7-6df8-4d78-eab6-28a46726fb3e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B90C:35CC80:18A832:2308A9:6AFDFB16 |
| html-safe-nonce | d789bdb203a0d053f77b4d98789e4d403000284a067f3802a6494e215f98b89c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTBDOjM1Q0M4MDoxOEE4MzI6MjMwOEE5OjZBRkRGQjE2IiwidmlzaXRvcl9pZCI6IjMyNjM5ODI3MzY1MTUxMzYyNzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c0810e4481e0a4f2e77481725cf27ccebb1fccae6481b463f3ebb27ae2edb097 |
| hovercard-subject-tag | issue:195629616 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/issues_fragments/issue_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular.js/15510/issue_layout |
| twitter:image | https://opengraph.githubassets.com/46290d39a7917823cf80e09b8ccc72294dda0ce408988d66dd48f3c02af21ad6/angular/angular.js/issues/15510 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/46290d39a7917823cf80e09b8ccc72294dda0ce408988d66dd48f3c02af21ad6/angular/angular.js/issues/15510 |
| og:image:alt | If an element has both ng-repeat and a directive that uses templateUrl , the enter animation doesn't work for the first item, even if the template is in $templateCache. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cvn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 86d46ece7c3d9b0562692f81a135cb55ad6a1c82c93ab1ac874d2f1b46b28958 |
| 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 | 5c18e6799976b7bc2f21178024289bb98edbcc85 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
| Skip to content | https://github.com/angular/angular.js/issues/15510#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular.js%2Fissues%2F15510 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular.js%2Fissues%2F15510 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular.js |
| Reload | https://github.com/angular/angular.js/issues/15510 |
| Reload | https://github.com/angular/angular.js/issues/15510 |
| Reload | https://github.com/angular/angular.js/issues/15510 |
| angular | https://github.com/angular |
| angular.js | https://github.com/angular/angular.js |
| Code | https://github.com/angular/angular.js |
| Issues389 (389) | https://github.com/angular/angular.js/issues |
| Pull requests72 (72) | https://github.com/angular/angular.js/pulls |
| Actions | https://github.com/angular/angular.js/actions |
| Projects | https://github.com/angular/angular.js/projects |
| Wiki | https://github.com/angular/angular.js/wiki |
| Security and quality | https://github.com/angular/angular.js/security |
| Insights | https://github.com/angular/angular.js/insights |
| https://github.com/angular/angular.js |
| Enter/leave animation not working for for first item in ng-repeat | https://github.com/angular/angular.js/issues/15510#top |
| https://github.com/gkalpak |
| component: ngAnimate | https://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22component%3A%20ngAnimate%22 |
| frequency: moderate | https://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22frequency%3A%20moderate%22 |
| severity: regression | https://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22severity%3A%20regression%22 |
| type: bug | https://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22 |
| 1.5.x | https://github.com/angular/angular.js/milestone/90 |
| https://github.com/cvn |
| cvn | https://github.com/cvn |
| on Dec 14, 2016 | https://github.com/angular/angular.js/issues/15510#issue-195629616 |
| Demo | http://plnkr.co/edit/j86chAryADuQsSM8ctte?p=preview |
| @gkalpak | https://github.com/gkalpak |
| #12612 | https://github.com/angular/angular.js/issues/12612 |
| gkalpak | https://github.com/gkalpak |
| on Dec 15, 2016 | https://github.com/angular/angular.js/issues/15510#event-895108072 |
| gkalpak | https://github.com/gkalpak |
| component: ngAnimate | https://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22component%3A%20ngAnimate%22 |
| frequency: moderate | https://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22frequency%3A%20moderate%22 |
| severity: regression | https://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22severity%3A%20regression%22 |
| type: bug | https://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22 |
| on Dec 15, 2016 | https://github.com/angular/angular.js/issues/15510#event-895112298 |
| gkalpak | https://github.com/gkalpak |
| 1.5.10 | https://github.com/angular/angular.js/milestone/131 |
| 1.5.x | https://github.com/angular/angular.js/milestone/90 |
| on Dec 15, 2016 | https://github.com/angular/angular.js/issues/15510#event-895112409 |
| https://github.com/gkalpak |
| gkalpak | https://github.com/gkalpak |
| on Dec 15, 2016 | https://github.com/angular/angular.js/issues/15510#issuecomment-267468306 |
| demo | http://plnkr.co/edit/O0RdEjAueisiFh16lby6?p=preview |
| https://github.com/cvn |
| cvn | https://github.com/cvn |
| on Dec 16, 2016 | https://github.com/angular/angular.js/issues/15510#issuecomment-267487367 |
| @gkalpak | https://github.com/gkalpak |
| gkalpak | https://github.com/gkalpak |
| on Dec 16, 2016 | https://github.com/angular/angular.js/issues/15510#event-896399209 |
| fix(ngAnimate): correctly animate transcluded clones with `templateUrl` | https://github.com/gkalpak/angular.js/commit/37af64a0133e85b6b2403a655f9a079678a62a3c |
| https://docs.github.com/articles/closing-issues-via-commit-messages |
| 37af64a | https://github.com/gkalpak/angular.js/commit/37af64a0133e85b6b2403a655f9a079678a62a3c |
| fix(ngAnimate): correctly animate transcluded clones with `templateUrl` | https://github.com/gkalpak/angular.js/commit/e21f868edae4da5dfe6eeac1f9d4a7fe819afcb2 |
| https://docs.github.com/articles/closing-issues-via-commit-messages |
| e21f868 | https://github.com/gkalpak/angular.js/commit/e21f868edae4da5dfe6eeac1f9d4a7fe819afcb2 |
| https://github.com/gkalpak |
| gkalpak | https://github.com/gkalpak |
| on Dec 16, 2016 | https://github.com/angular/angular.js/issues/15510#issuecomment-267548547 |
| @cvn | https://github.com/cvn |
| #15514 | https://github.com/angular/angular.js/pull/15514 |
| https://github.com/cvn |
| cvn | https://github.com/cvn |
| on Dec 16, 2016 | https://github.com/angular/angular.js/issues/15510#issuecomment-267553783 |
| https://github.com/gkalpak |
| gkalpak | https://github.com/gkalpak |
| on Dec 16, 2016 | https://github.com/angular/angular.js/issues/15510#issuecomment-267557027 |
| https://github.com/cvn |
| cvn | https://github.com/cvn |
| on Dec 16, 2016 | https://github.com/angular/angular.js/issues/15510#issuecomment-267560405 |
| gkalpak | https://github.com/gkalpak |
| on Dec 20, 2016 | https://github.com/angular/angular.js/issues/15510#event-899840564 |
| fix(ngAnimate): correctly animate transcluded clones with `templateUrl` | https://github.com/gkalpak/angular.js/commit/01aa5e29ebb502c1d8fd3b8fad72305dc273ab2e |
| https://docs.github.com/articles/closing-issues-via-commit-messages |
| 01aa5e2 | https://github.com/gkalpak/angular.js/commit/01aa5e29ebb502c1d8fd3b8fad72305dc273ab2e |
| gkalpak | https://github.com/gkalpak |
| on Dec 31, 2016 | https://github.com/angular/angular.js/issues/15510#event-908494888 |
| fix(ngAnimate): correctly animate transcluded clones with `templateUrl` | https://github.com/gkalpak/angular.js/commit/440cefa9f17459168cde3d5909366c17dbc70951 |
| https://docs.github.com/articles/closing-issues-via-commit-messages |
| 440cefa | https://github.com/gkalpak/angular.js/commit/440cefa9f17459168cde3d5909366c17dbc70951 |
| fix(ngAnimate): correctly animate transcluded clones with `templateUrl` | https://github.com/gkalpak/angular.js/commit/c215896c8530fa298c62d83a4ab6d6a569c2567e |
| https://docs.github.com/articles/closing-issues-via-commit-messages |
| c215896 | https://github.com/gkalpak/angular.js/commit/c215896c8530fa298c62d83a4ab6d6a569c2567e |
| gkalpak | https://github.com/gkalpak |
| on Jan 9, 2017 | https://github.com/angular/angular.js/issues/15510#event-915708400 |
| fix(ngAnimate): correctly animate transcluded clones with `templateUrl` | https://github.com/gkalpak/angular.js/commit/5341108779892f94ce50ad3133beeac7f2968a5b |
| https://docs.github.com/articles/closing-issues-via-commit-messages |
| 5341108 | https://github.com/gkalpak/angular.js/commit/5341108779892f94ce50ad3133beeac7f2968a5b |
| gkalpak | https://github.com/gkalpak |
| completed | https://github.com/angular/angular.js/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted |
| d24617b | https://github.com/angular/angular.js/commit/d24617bf329f1a5394de4627831c49a32b488685 |
| on Jan 24, 2017 | https://github.com/angular/angular.js/issues/15510#event-935264067 |
| gkalpak | https://github.com/gkalpak |
| on Jan 24, 2017 | https://github.com/angular/angular.js/issues/15510#event-935280761 |
| fix(ngAnimate): correctly animate transcluded clones with `templateUrl` | https://github.com/angular/angular.js/commit/f01212ab5287ac7a154da7d75037ed444e81eb34 |
| https://docs.github.com/articles/closing-issues-via-commit-messages |
| f01212a | https://github.com/angular/angular.js/commit/f01212ab5287ac7a154da7d75037ed444e81eb34 |
| ellimist | https://github.com/ellimist |
| on Mar 15, 2017 | https://github.com/angular/angular.js/issues/15510#event-1000422324 |
| fix(ngAnimate): correctly animate transcluded clones with `templateUrl` | https://github.com/ellimist/angular.js/commit/8045a1773726ecb10586bc1adb155878973551d9 |
| https://docs.github.com/articles/closing-issues-via-commit-messages |
| 8045a17 | https://github.com/ellimist/angular.js/commit/8045a1773726ecb10586bc1adb155878973551d9 |
| Sign up for free | https://github.com/signup?return_to=https://github.com/angular/angular.js/issues/15510 |
| Sign in to comment | https://github.com/login?return_to=https://github.com/angular/angular.js/issues/15510 |
| gkalpak | https://github.com/gkalpak |
| component: ngAnimate | https://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22component%3A%20ngAnimate%22 |
| frequency: moderate | https://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22frequency%3A%20moderate%22 |
| severity: regression | https://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22severity%3A%20regression%22 |
| type: bug | https://github.com/angular/angular.js/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22 |
| 1.5.x | https://github.com/angular/angular.js/milestone/90 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |
.