Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested transclude broken #111

Open
jzahka opened this issue Jun 28, 2016 · 2 comments
Open

Nested transclude broken #111

jzahka opened this issue Jun 28, 2016 · 2 comments

Comments

@jzahka
Copy link

jzahka commented Jun 28, 2016

When you include using the transclude method of inserting card template, and the contents include a directive that has a transclude, things get wonky.

Here is an example codepen.

[ngTransclude:orphan] Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found.

@kbarresi
Copy link

Can confirm when using with Angular Material's <md-button> directive.

@jzahka
Copy link
Author

jzahka commented Jun 29, 2016

I've forked repo and made changes to use ng-transclude instead of ng-include which fixes the scope issues - at the cost of deprecating using cardTemplate and cardTemplateString.

And you'll have to use $parent.card instead of card when referencing the element in the transcluded item.

https://github.com/VegaFactor/angular-deckgrid

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

No branches or pull requests

2 participants