I have a primary outlet for displaying home, dashboard, request form.
Dashboard is a gallery for displaying different kind of tiles like chart, table.
I want an outlet in each tile of dashboard to show either chart or table.
Since there are multiple tile instances and if its the same outlet in each tile, am afraid every tile would respond to the navigation request to a /tile/chart or /tile/table. I should be able to differentiate between each tiles outlet.
Primary outlet -> Home, Dashboard, Request.
Dashboard -> Tile components with another outlet to show chart/list.
HomeComponent
<router-outlet></router-outlet> //outlet for dashboard, request
Routes:
{
path: 'dashboard',
component: DashboardComponent //main outlet
},
{
path: 'home',
component: HomeComponent // main outlet
}
Dashboard Component:
<Tile> --outlet for chart/table -- </Tile> //Tile 1
<Tile> --outlet for chart/Table -- </Tile> //Tile 2 and so on.