-
-
Notifications
You must be signed in to change notification settings - Fork 619
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 Template Content - Not passing the data #250
Comments
OK, so i have dig around and found the blog post on implementing a modal dialog. also, i'm highly recommend reading the shadow-dom content guide mention in the article for who never used it before.. this was a good reference to understand what i was doing wrong, figuring out on the way that i can only have one 'content' element that is unnamed and it make sens since it is the exit point for dynamic content. I'v ended up with this structure that now working. app.html
main-layout.html
page-container.html
i have found no references in the docs and it will be great if the docs will elaborate on how to create templates and nested templates, and the role of content selectors in the custom elements templates. Thanks, |
Closing as new shadow dom implementation and docs are coming soon. |
Hi,
First of all, i really like aurelia and following the progress for months and waiting for the beta to arrive!
i'm started to work on a big project, and decided to go with aurelia 👍
Starting with a basic implementation of the templating, and cutting the ui into small parts.
i have encounter a rendering problem. and it's seems like nested view having some problem to render when they are nested.
i have the following structure:
app.html
layout.html
page-container.html
my router is navigating into a page called 'testing' and contain the next template:
my output from the router is not presented in the output of the page, my final output is this:
when it should be
if i'm removing the 'page-container' layer, i can see the output of the testing view.
and if i'm editing my layout.html page and shifting the content tag from the inner view to be side by side, i'm getting a duplicate content.
resulting in:
this is a strange behavior, and i don't think i see it in previous builds, i played a little with this structure as a P.O.C to ensure that aurelia is fit for my solution.
the console don't throw any errors, and the debug state that the resources has loaded with proper dependencies.
it's seems to me that i'm constructing the views hierarchy as needed, is this a bug or am i doing something wrong?
the router view will not display the content of the testing page (by the route) only if i will remove the layout
Thanks,
Elior
The text was updated successfully, but these errors were encountered: