Closed karthickthangasamy closed 8 years ago
@karthickthangasamy pointed me to this issue: https://github.com/aurelia/templating/issues/259 which is similar to that one mentioned here.
@karthickthangasamy My Gitter doesn't like me atm so I'm writing here (and post in Gitter when it likes me again).
I could not solve this with the Aurelia version that you're using. Even wrapping the navigation menu in a <template>
doesn't solve it like I suggested.
But I updated (jspm update
) to the latest libs and replaced all <content>
with <slot>
and initialized @children
arrays as empty array. For example like this:
export class ejGrid extends WidgetBase {
@children(`${constants.elementPrefix}column`) columns = []; // <-- needs initialization
constructor(element, templateEngine) {
super();
this.element = element;
this.hasChildProperty = true;
this.childPropertyName = 'columns';
this.templateProcessor = new TemplateProcessor(this, templateEngine);
this.templateProcessor.initTemplate();
}
And with the most recent templating library the issue is solved and it works! :smile:
I really think you should update. Syncfusion bridge doesn't have that much <content>
so it should really be easy to migrate to <slot>
.
I will PR my changes for you as a starting ground.
edit: Having said that, the about page
is not loading because it's missing an image file. I couldn't find the cause and have to move on to do other things for work now. :smile:
I suppose it will be easy for you to find this.
Switching to "Components Catalog" and back to "Installation" works, though.
Any idea on when the Thanood fork will be merged in?
@tommasop The PR has been merged.
We are facing issue while routing between
samples
(contains child routing) and other root menu (about, installation) navigation.Reproduce the issue
Components catalog
menu.about
menu.Now, the
about
page is empty and getting the console error as like the above stack trace.