0
Ich muss $ rootScope.VARIABLE festlegen, wenn sich die URL geändert hat.
Wie könnte ich das in $ rootScope. $ Beim Rückruf tun?
$rootScope.$on('$locationChangeSuccess', function(event, absNewUrl, absOldUrl) {
$rootScope.alert =True; // $rootScope is undefined
});
* "$ rootScope ist nicht definiert" *. Dies ist absolut ** nicht möglich, da "$ rootScope. $ On" funktioniert. – dfsq