8000 Add support for attribute lookup for multi slot transclusion · Issue #14169 · angular/angular.js · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Add support for attribute lookup for multi slot transclusion #14169
Closed
@david2tm

Description

@david2tm

Currently ti use multi slot transfusion, we need to name our elements using not standard HTML elements. Like in a snippet below.

<!-- parent.html -->
<div data-my-directive>
  <my-slot>
    <span>Lorem Ipsum</span>
  </my-slot>
</div>

This is not HTML5 compliant.
Enabling attribute lookup, may help this. Consider following syntax:

<!-- parent.html -->
<div data-my-directive>
  <div data-my-slot>
    <span>Lorem Ipsum</span>
  </div>
</div>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0