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 Transclusion #5

Open
hleise opened this issue Jan 14, 2018 · 0 comments
Open

Nested Transclusion #5

hleise opened this issue Jan 14, 2018 · 0 comments

Comments

@hleise
Copy link

hleise commented Jan 14, 2018

How would this be used with nested transclusion? For example:

app.html:

<my-component>
    <p>Hello world</p>
</my-component>

myComponent html template:

<split direction="horizontal" ng-transclude>
    <split-area size="50" ng-transclude>
        <div ng-transclude></div>
    </split-area>
    <split-area size="50" ng-transclude>
        <p>Hola mundo</p>
    </split-area>
</split>

The idea is that "Hello world" should be placed in the div of the first split-area tag, however, I keep getting an ng-transclude orphan error: https://docs.angularjs.org/error/ngTransclude/orphan?p0=%3Cdiv%20ng-transclude%3D%22%22%20class%3D%22ng-scope%22%3E

The error page mentions including "transclude: true" in the component declaration, but I've already done that. Any idea how to make this work?

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

1 participant