Is there a simple router config that allows me to replace the current 
template with the template I am routing to (or do I need to do some *ngIf 
stuff)? Am I going down the right path with OnDeactivate/CanDeactivate?

I've got a parent with 
<router-outlet></router-outlet>

And then I have a child route configured that goes to another component 
(and template). It works fine but the child template is rendered underneath 
the parent template.

Looks like this:

Main Menu
1. Option 1
2. Option 2

Option 2
1. Subsection 2

But I would like when the user clicks on either Option 1 or Option 2 (in 
this case they've clicked Option 2) that the Main Menu area would be 
replaced with (in this example) Option 2.

So the FINAL view would just be (WITHOUT Main Menu above it:

Option 2
1. Subsection 2


-- 
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