I have a dashboard component which looks like the below
@Component({
selector: 'dashboard',
template: '<category-list></category-list>
<header-top></header-top>
<router-outlet></router-outlet>'
})
export class Dashboard{
constructor() {
}
}
The category-list component lists all the categories in the dashboard sidebar page , and the base routing of '/dashboard' loads all the list first in the router-outlet(which has edit option also , when here edited there should also change), what is the best way to communicate a router outlet child with parent siblings ?
category-list component is
@Component({
selector: 'category-list',
template: "all category list"
})
export class DashboardCategoryList{
constructor() {
}
}
My child component inside the router outlet looks like
@Component({
selector: 'category-list-edit',
template: ''
})
export class DashboardCategoryList{
constructor() {
}
}
The edits in the category-list-edit should be reflect in the category-list, how can this be achieved ?