Using Angular. When I click the link, I want to open the new page to show, not showing below the link.
I tried in app-routing module.ts
import{WorksComponent} from './works/works.component';
import { ZenigameComponent } from './zenigame/zenigame.component';
const routes: Routes = [
{path:'works-component',component:WorksComponent,
children:[{path:'zenigame-component',component:ZenigameComponent,}]}];
Then I tried in works.component.ts
<a routerLink="zenigame-component" routerLinkActive="active">DAY14:ゼニガメ</a>
<router-outlet></router-outlet>
In zenigame.component.ts
<p>zenigame works!</p>
It shows like this It shows below the link.
I don't want this, When I click the link "DAY14:ゼニガメ", I want it to show "zenigame works!" on a different page.
Like, when you want to search "zenigame" on google.com you click the search button, and the different page opens to show the result of the search.
Thank you for reading. Sorry for my poor English.