I'm trying to 'extract' a value from scope. However I get an error that is not defined, through I don't understand why. This is from Chrome dev
console.log($scope.auth)
console.log($scope)
The first one prints "undefined" and the second one prints as follows. I expected $scope.auth to print the object
auth: Object
Owner: "agent2"
Role: "coldCalling"
Is there any reason for this ?
$$childScopeClass {$$childTail: null, $$childHead: null, $$nextSibling: null, $$watchers: null, $$listeners: Object…}
$$childHead: null
$$childScopeClass: null
$$childTail: null
$$listenerCount: Object
$$listeners: Object
$$nextSibling: null
$$prevSibling: null
$$watchers: null
$id: "002"
$parent: Scope
auth: Object
Owner: "agent2"
Role: "coldCalling"
__proto__: Object
this: $$childScopeClass
__proto__: Scope