angular.js/test
Vojta Jina 909cabd36d fix($compile): make isolate scope truly isolate
Fixes issue with isolate scope leaking all over the place into other directives on the same element.

Isolate scope is now available only to the isolate directive that requested it and its template.

A non-isolate directive should not get the isolate scope of an isolate directive on the same element,
instead they will receive the original scope (which is the parent scope of the newly created isolate scope).

Paired with Tobias.

BREAKING CHANGE: Directives without isolate scope do not get the isolate scope from an isolate directive on the same element. If your code depends on this behavior (non-isolate directive needs to access state from within the isolate scope), change the isolate directive to use scope locals to pass these explicitly.

// before
<input ng-model="$parent.value" ng-isolate>

.directive('ngIsolate', function() {
  return {
    scope: {},
    template: '{{value}}'
  };
});

// after
<input ng-model="value" ng-isolate>

.directive('ngIsolate', function() {
  return {
    scope: {value: '=ngModel'},
    template: '{{value}}
  };
});

Closes #1924
Closes #2500
2013-11-07 22:03:19 -08:00
..
auto style(injectorSpec): fix typo in "it" description 2013-10-25 21:52:46 +01:00
helpers fix(modules): stop leaking global variables in tests 2013-10-10 11:58:15 -07:00
ng fix($compile): make isolate scope truly isolate 2013-11-07 22:03:19 -08:00
ngAnimate fix($animate): only apply the fallback property if any transition animations are detected 2013-11-06 02:01:19 -05:00
ngCookies feat($cookieStore): $cookieStore.get now parses blank string as blank string 2013-05-08 10:04:07 +01:00
ngMock fix(modules): stop leaking global variables in tests 2013-10-10 11:58:15 -07:00
ngResource fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
ngRoute fix(ngView): only run anchorScroll after animation is done 2013-11-06 00:14:11 -08:00
ngSanitize fix($sanitize): sanitize DOCTYPE declarations correctly 2013-10-03 08:42:15 +01:00
ngScenario test($browser): correct false positive in ApplicationSpec.js 2013-09-11 22:19:24 +01:00
ngTouch fix(ngTouch): add $event to ng-swipe 2013-10-08 12:55:16 +01:00
AngularSpec.js fix(csp): fix csp auto-detection and stylesheet injection 2013-10-18 17:33:53 -07:00
ApiSpecs.js feat(ngRepeat): add support for custom tracking of items 2013-03-29 23:01:52 -07:00
BinderSpec.js feat(ngRepeat): use block separator comments 2013-10-09 15:19:10 -07:00
jqLiteSpec.js fix(jqLite): ignore class methods on comment elements 2013-10-09 15:19:10 -07:00
jquery_alias.js fix(specs): fix jQuery to jqLite binding on IE8 2011-09-16 02:44:33 +02:00
jquery_remove.js fix(specs): fix jQuery to jqLite binding on IE8 2011-09-16 02:44:33 +02:00
jQueryPatchSpec.js feat(jqLite): switch bind/unbind to more recent jQuery on/off 2013-06-19 20:53:24 +01:00
loaderSpec.js fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
minErrSpec.js feat(minerr): log minerr doc url in development 2013-08-15 13:23:18 -07:00