Hi, first sorry for my bad english
I had an aurelia app that worked fine but after a “npm update”, it has a strange problem:
If I do this on my app.html, it shows the list with the configured routes correctly:
<ul repeat.for="nav of router.navigation">
<li>
<a href.bind="nav.href">${nav.title}</a>
</li>
</ul>
but if I move this html to a nav.html and use it like this (with the bindable atribute, etc), it stops working
<require from="nav.html"></require>
...
<nav router.bind="router"></nav>
Any html I have inside the nav.html gets printed on screen but not the routes.
Now, even stranger is that If I just write on my app.html this:
<template>
<require from="nav.html"></require>
<ul repeat.for="nav of router.navigation">
<li class="${nav.isActive ? 'active' : ''}">
<a href.bind="nav.href">${nav.title}</a>
</li>
</ul>
</template>
It does not show the routes anymore (but show any HTML inside the nav.html). If I remove the “require”, it works again.
The same problem happen if I use @viewResources
instead of require on the template.
If I configure nav.html to be a global resource, it works fine but if I require a css file, it stops working again.
So basically, this works (without css)
<template>
<ul repeat.for="route of router.navigation">
<li>
<a href.bind="route.href">${route.title}</a>
</li>
</ul>
</template>
but this, although applies the css, does not render the UL:
<template>
<require from="app.css"></require>
<ul repeat.for="route of router.navigation">
<li>
<a href.bind="route.href">${route.title}</a>
</li>
</ul>
</template>
Did something changed around this?