I have the code snippet below in my app.component.ts
file:
<mat-toolbar color="primary">My Application</mat-toolbar>
<router-outlet></router-outlet>
<particles [style]="style" [width]="width" [height]="height" [params]="params"></particles>
The intention here is to utilize the <particles>
component for an animated background while also utilizing the routing module outlet to ensure that any displayed components appear on top of the <particles>
component.
When the app routes to a default material design card, the result is as shown in the image linked below:
https://i.sstatic.net/3WRan.jpg
Is there a way to apply styles to the <particles>
component and the <router-outlet>
so that the MdCard (or any other component displayed by the router) appears in front of the background?