SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 188 JavaScript

fix($compile): evaluate against the correct scope with bindToController on new scope

Previously, the directive bindings were evaluated against the directive's
new (non-isolate) scope, instead of the correct (parent) scope.
This went unnoticed most of the time, since a property would be eventually
looked up in the parent scope due to prototypal inheritance. The incorrect
behaviour was exhibited when a property on the child scope was shadowing
that on the parent scope.

This commit fixes it.

Fixes #13021
Closes #13025
G
Georgios Kalpakas committed
b9f7c453e00d6938106f414952f74d5e5fdcb993
Parent: 7503441
Committed by Peter Bacon Darwin <pete@bacondarwin.com> on 11/10/2015, 8:56:33 PM