I polled the server with $interval in the controller of a route. When switching to another route, the $interval was not canceled.
Is there an event for ui-router to switch routes?
In addition It’s not very clear that $scope is not destroyed when switching routes (¥destory is not triggered), but the link to a route scope will be executed once every time it is switched to a route?