Well I found the *redirectTo *property of RouteConfig on accident and this 
seems to fix atleast the reload issue, but still not the issue described in 
6. 

So problem of step 5 is fixed by this code in app.component.ts:
@RouteConfig([
  {path:'/tables/...', name: 'Tables', component: TablesComponent},
  {path:'/tables/table', redirectTo: ['Tables']}
])



Am Montag, 18. Januar 2016 17:10:08 UTC+1 schrieb HansMeise:
>
> Ok I finally made a Plunker example in order to show the problem:
> http://plnkr.co/edit/jJ27otJoVetyCfiLR79y?p=preview
>
> So my problem again described with the plunker example (after launching it 
> in a separate window, so you can see the actual angular url):
>
> 1. On the main page click on "Tables"
> 2. The TableComponent will load and show 2 entries. Also the url is now 
> http://run.plnkr.co/<plunkerId>/#/tables/table
> 3. Click an entry and the entry detail will be shown below. Also the url 
> is now http://run.plnkr.co/<plunkerId>/#/tables/table/detail/42 (or 43)
> 4. If you now press reload in the browser, the table and the tableentry 
> detail will be shown again.
> 5. But: If you type in the url http://run.plnkr.co/<plunkerId>/#/tables/table 
> or reload the page after step 2 the table won't be shown, since the 
> TableComponent doesn't even load, despite the url still beeing 
> http://run.plnkr.co/<plunkerId>/#/tables/table
> 6. I furthermore noticed, that if you press "Tables" again after step 4 
> the url will change to http://run.plnkr.co/<plunkerId>/#/tables/table as 
> expected, but still show the DetailComponent, which is not expected.
>
> I hope this helps to understand the issue. Thanks for all your patience :-)
>
>
> Am Freitag, 15. Januar 2016 17:47:00 UTC+1 schrieb Günter Zöchbauer:
>>
>> Sorry, seems I didn't read to the end.
>> Hard to tell without an repo example or actual code.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to