Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个单独的模块,它们都通过 $rootScope 在同一个视图中结束。
我正在尝试设置一个条件,以允许我强制用户备份设置的路径。我需要的是能够将唯一标识符添加到 $rootScopes 之一。
我所拥有的是:
$rootScope.go(url)
我想要类似的东西
$rootScope.go(url + 'unique id')
没有弄乱我的路径。
有什么办法可以做到这一点?