How can I remove a view in SAPUI5 when I visit another route such that when I return back its onInit
function call again.
My problem is that I want load different master-details applications in same sap.m.SplitApp
object but the problem is that I faced with duplicate id.
So one possibility is that that I destroy the old content, while if I destroy the old content I will get rid of duplicate id, but when I want to visit again the old route it says some elements has been destroyed and can not be used any more.
So one possibility is that to find a way to run the onInit
function each time that we visit the routes.