Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Allow users to pass in templates in tabs to allow onDestroy hook to be called for content #2910

Merged

Conversation

Akshat55
Copy link
Contributor

@Akshat55 Akshat55 commented Jun 3, 2024

Closes #2908

Angular keeps track of projected content even if it is conditionally hidden in component it is passed in. This means the life cycle hooks are only called once instead of every time *ngIf condition is set to true within the projecting component.

Changelog

New

  • Allow users to pass in a template as tab content for tabs
  • Users can render templates AND/OR projected content

… to be called for content

Signed-off-by: Akshat Patel <[email protected]>
@Akshat55 Akshat55 requested a review from a team as a code owner June 3, 2024 02:48
Copy link

netlify bot commented Jun 3, 2024

Deploy Preview for carbon-components-angular ready!

Name Link
🔨 Latest commit 73d0886
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-angular/deploys/665f766f305dce0008c9a06f
😎 Deploy Preview https://deploy-preview-2910--carbon-components-angular.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

github-actions bot commented Jun 4, 2024

DCO Assistant Lite bot All contributors have signed the DCO.

@Akshat55 Akshat55 force-pushed the tab-template-projection branch from 84b5575 to 6c7f311 Compare June 4, 2024 15:01
Signed-off-by: Akshat Patel <[email protected]>
@zvonimirfras zvonimirfras merged commit e167388 into carbon-design-system:master Jun 4, 2024
13 checks passed
Copy link

github-actions bot commented Jun 4, 2024

🎉 This PR is included in version 5.26.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tabs not respecting cacheActive false property and non-active tabs aren't destroyed from the DOM
2 participants