如何在AngularJS中的视图之间移动$routeProvider时阻止$destroy-of-scope

How to stop $destroy of scope during moving in $routeProvider among views in AngularJS

本文关键字:routeProvider destroy-of-scope 移动 之间 AngularJS 视图      更新时间:2023-09-26

我有AngularJS应用程序,在那里我使用$routeProvider。当我在视图之间移动时(ng视图)我会为页面获得一个新的范围。因此,我想回到上一个视图,我得到了一个新的作用域,而不是以前的作用域。

在AngularJS中的视图之间移动$routeProvider期间,如何停止scope$destroy

是否可以使用一些缓存或smth在视图之间快速移动?

谢谢你的帮助。

答案是否定的。Angular不同意在AngularJS中的视图之间移动$routeProvider时停止$destroy of scope。