1
Im der folgenden Eigenschaften:
$rootScope.$on('setmoney',function (thisdata) {
console.log("setting money");
console.log("money is : " + thisdata);
});
und diese woanders:
$rootScope.$broadcast('setmoney', {cash: 100000});
Wie kann ich sicherstellen, dass ich die Parameter Bargeld abrufen kann in die setmoney rootscope.on Funktion?
Ausgang nach thisdata:
Object {name: "setmoney", targetScope: Scope, defaultPrevented: false, currentScope: Scope}
currentScope
:
null
defaultPrevented
:
false
name
:
"setmoney"
preventDefault
:
()
targetScope
:
Scope
__proto__
:
Object
speicherte mich von Kopfschmerzen .. Vielen Dank Kumpel –