I have to hide the above parent view.
Following is my code. When I click any one of the box parent should be hide child should be appear.
<app-navbar></app-navbar>
<div class="container" [style.height]='height' style="margin-top: 7%;">
<div class="row box_rpad">
<app-box-layout
(display)="onDisplay($event)"
*ngFor="let color of colors let i=index"
[color]='color.hex'
[text]='color.name'
[id]='i'>
</app-box-layout>
</div>
</div>
<!-- CHILD ROUTES -->
<div class="container">
<router-outlet></router-outlet>
</div>
January 2021
You can remove the component from the parent route. See example here
{
path: 'parent',
//component: ParentComponent,
children: [
{ path : '', pathMatch:'full', component: ParentComponent},
{ path: 'child', component: ChildComponent },
],
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With