Home > Back-end >  How remove is auxiliary outlet navigating Angular 15
How remove is auxiliary outlet navigating Angular 15

Time:12-15

I have a route http://localhost:4200/app/articles/article/(create//left:show-article-navigate) .

After pressing the button "Create Article" happens it: this.router.navigate([`/app/articles/article/page/${article.id}`]) .

The route looks like http://localhost:4200/app/articles/article/(page/1200//left:show-article-navigate) .

How do I remove left:show-article-navigate on button click?

I tried this:

this.router.navigate(\[`/app/articles/article/page/${article.id}`, { outlets: { left: null } }\]);

CodePudding user response:

this.router.navigate([ { outlets: {primary: `articles/article/page/${article.id}`, left: null } }]);
  • Related