1×
Become a member
to unlock all features
Autoplay

    Override Component UI with an Angular TemplateRef

    angularAngular
    5 - 6

    What if we want to use some of the state in the toggle component inside of the customized view we’re providing. Content components don’t have an easy way of accomplishing that. However, TemplateRefs were specifically designed for this purpose. TemplateRefs serve the same function as React’s Render Prop pattern.