Forum Discussion
PerBonomi
Boss
Thanks for that. Usually that would be a good way to do it.
My "problem" is that the second custom component in question uses a freemarker macro to do a large api call and I don't want to do that call unless I specifically load the second component.
VarunGrazitti
11 years agoBoss
PerBonomi - In that case, you can create an Endpoint instead of your CC2, and make an ajax call to that endpoint from CC1. This would load the content on click rather than show/hide and would save your API call unless the user clicks.
Related Content
- 10 years ago
- 4 years agoInactive User