Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ngTrasclude: Do you plan on supporting multi-translcude? #7197

Closed
Wizek opened this issue Apr 22, 2014 · 3 comments
Closed

ngTrasclude: Do you plan on supporting multi-translcude? #7197

Wizek opened this issue Apr 22, 2014 · 3 comments

Comments

@Wizek
Copy link

Wizek commented Apr 22, 2014

Right now the ng-transclude directive doesn't take any parameters, but it would be useful if it worked like this:

Directive template:

<div ng-transclude="foo"></div>
<div ng-transclude="bar"></div>

Usage:

<div directive>
  <div ng-fill-transclude-slot="foo">hello</div>
  <div ng-fill-transclude-slot="bar">{{ 1 + 2 }}</div>
</div>

I guess we could use a better name instead of ng-fill-transclude-slot. An alternative would be to use element names, as a cleaner API, like this:

<div directive>
  <foo>hello</foo>
  <bar>{{ 1 + 2 }}</bar>
</div>
@Wizek
Copy link
Author

Wizek commented Apr 22, 2014

Seems like #4350 is related.

@aeharding
Copy link

See #4357

@btford
Copy link
Contributor

btford commented May 1, 2014

Closing this as a duplicate.

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

No branches or pull requests

3 participants