Open jdutheil opened 8 years ago
For previous example, I can simply add the real route in second parameter ; other problem is when I have nested routes in nested routes :
template
@RouteConfig([
{ path: '/', redirectTo: '/contact' },
{ path: '/contact/...', component: TemplateContactComponent, as: 'TemplateContact' }
])
template contact
@RouteConfig([
{ path: '/', redirectTo: '/form' },
{ path: '/form', component: TemplateContactFormComponent, as: 'TemplateContactForm' }
])
not working
̀
html
<a [router-link]="['/Template', 'TemplateContact']">---
̀
@jdutheil seems like this is a huge flaw with angular 2 that makes it useless for anything more than toy apps https://github.com/angular/angular/issues/6204
Hi everybody,
I'm using nested routes in order to make my application more clear, i.e. for example :
Home route is '/dashboard' ContactComponent defines routes prefixed by '/contact', for example '/contact/list'
I need to link to child routes directly from my dashboard ; it worked well some weeks ago, but now I get this error : "EXCEPTION: Link "["Contact"]" does not resolve to a terminal instruction. in [null]"
Some codes :
app routing
contact routing
call that broke the app