I have a component /apps/myproject/component1.
In its dialog i have some widgets.Now I have another component /apps/myproject/component2 and its dialog want to use the same tab but a widget should be removed and one should be added in component2 touch UI dialog in AEM.
I tried to achieve it using
sling:resourceType :"granite/ui/components/foundation/include"
path:"/apps/myproject/component1"
on tab1.
But if i want to add and remove a widget, i am not able to do that.
Can anyone please help me?