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

Transcluded template content isn't shown within ng-repeat in Angular 1.3.2, 1.2.16 is fine #9989

Closed
quintenvk opened this issue Nov 10, 2014 · 2 comments

Comments

@quintenvk
Copy link

I have a directive which, simplified, fetches data based on its input and returns it in an ul-element, using ng-repeat on the li-tags. The output is customly displayed using elements within the tag that are transcluded within the li-tags.

This worked fine in Angular 1.2.16, but since the switch to 1.3.2 it no longer does.

Note: the ng-repeat does render, but the {item.prop} tags don't. They do, however, show up as ng-bind-template in my inspector.

Simplified code in the plunker: http://plnkr.co/edit/rmE9eWyLDcP1YEwvh9NH?p=preview
When I alter the version to 1.3.2, I just see an empty template.

@clakech
Copy link
Contributor

clakech commented Nov 10, 2014

This is broken with ng1.2.18 too but works with 1.2.17

You may have a look at the changelog of 1.2.18 https://github.com/angular/angular.js/blob/master/CHANGELOG.md#1218-ear-extendability-2014-06-13

and check this issue that seems really near from yours: #7874

@lgalfaso
Copy link
Contributor

Hi,
I am sorry, but what you are trying to do is in fact invalid. Here is a complete explanation of why #7874 (comment)
I understand that this may not be what you were expecting, but in fact the post explains how transclude is intended to work

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