Suppose there is a MainView view. In it (in the initialization function) a child view is created, a valid listView. When switching to another url via a router, a function is called in the router to close the current view and create a new one in its place.

How can I close a child View if it can be dynamic or not known at all for logic

  • MainView try to override the remove method in MainView ? - Dmitriy Simushev
  • Did not think about it. Thank! - Mr. Music

0