I have a main page with two buttons and routing works fine. However, these two components are presented on this main page with buttons, because of <router-outlet></router-outlet>
.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Main page</title>
</head>
<body>
<h1>My Page</h1>
<button class="button_blue"><a routerLink="/pageB">1</a></button>
<button class="button_red"><a routerLink="/pageC">2</a></button>
<router-outlet></router-outlet>
</body>
</html>
When I click on a main page button, how can I open my 'pageB' as complete new empty page, without any links or buttons? target="_blank"
gives me the same, just on an another tab.