Cristian Rinaldi
Cristian Rinaldi

Reputation: 439

NgNewRouter viewport and navigation

Hello Angular Community: I'm use the ngNewRouter with Angular 1.4 for my applications and I found a series of problems or maybe not, and it is my ignorance .... When you define a nested router, the viewport is searched only in the direct parent and not looking at the chain of definitions for routers, this, I think violates the modularity ...

For example:     MainController define the following configuration:     

$router.config ([
{
   path: '/ process'
   components: {
     main: 'process'
   }
},
{
   path: '/ process /: id'
   components: {
     main: 'instance'
   }
}

   InstanceController define the following:

{
  path: '/ district /: id'
  components: {
    main: 'instance.details'
  }
}

   Then, the associated template is not rendered in the viewport, but if I move settings of IntanceCntroller to MainController everything work fine.

Any Idea?

Upvotes: 0

Views: 264

Answers (1)

FloydThreepwood
FloydThreepwood

Reputation: 1585

This is a bug in the current release. They are currently reworking the API for 1.5 and 2.0 and - as it seems, have abandoned the current repository.

Just take a look at the issue tracker and some of the forks.

Upvotes: 0

Related Questions