I decided it's time for me to explore the hidden side of testing directives, and now when I do something with a directive that has an isolated scope:
parentScope = $rootScope.$new()
parentScope.dasDingy = "bla bla dingy"
element = angular.element("<foo dingy='dasDingy'></foo>")
$compile(element)(parentScope)
$rootScope.$digest()
scope = angular.element(element).scope()
console.log(scope.dingy) // is undefined --- Nah, ain't exist
// but, if I do
console.log(scope.$$childHead.dingy) // it exists and it's == 'bla bla dingy'
So, what the heck is scope.$$childHead
and why it is not accessible directly on scope?
or maybe I'm doing something stupid here?