Effect of resetNamespace on the engine

What happens if we enable resetNamespace while mounting an engine?

How it is different from being disabled?

What effect it has on the app as well as on engine?

It controls how the route will be named from the perspective of the host application. Given these:

this.route('parent', function() {
  this.mount('first-engine');
  this.mount('second-engine', { resetNamespace: true });
});

You could send people to the first engine by saying transitionTo('parent.first-engine) but you would send people to the second by saying transitionTo('second-engine').

Does resetNamespace have any effect within the engine?

No, it does not affect the routes inside the engine.

1 Like