I have an Angular layout and it is used by multiple routes. I wanted to know if it is possible to have an area inside it that would be controller by the current route. For example some buttons with specific logic for on click.
Layout:
<div fxLayout="row" fxLayoutAlign="space-between center">
<div>
<span class="titleBig">Title</span>
</div>
<div>
/* Here should be the custom template from the current route */
</div>
</div>
<router-outlet></router-outlet>
Route 1:
<button type='button' mat-button (click)="doMath()">Do Math</button>
Route 2:
<button type='button' mat-button (click)="doPlayOutside()">Do Play</button>