1×
Become a member
to unlock all features
Autoplay

    Modify User Provided UI with Angular Content Directives

    angularAngular
    5 - 6

    If we’re going to make our toggle accessible, we’ll need to apply certain aria attributes to the control that does the toggling. Instead of making the parent component handle that, we can provide a toggler directive that automatically applies the needed attributes. Content directives allow the user to tell the UI component where to make those modifications.