Skip to content

Latest commit

 

History

History
5429 lines (4243 loc) · 284 KB

CHANGELOG.md

File metadata and controls

5429 lines (4243 loc) · 284 KB

1.3.0-beta.8 accidental-haiku (2014-05-09)

Bug Fixes

  • $compile: set $isolateScope correctly for sync template directives (562c4e42, #6942)
  • $httpBackend: Add missing expectHEAD() method (e1d61784, #7320)
  • $interpolate: don't ReferenceError when context is undefined (924ee6db, #7230, #7237)
  • grunt-utils: ensure special inline CSS works when angular is not a global (af72f40a, #7176)
  • injector: invoke config blocks for module after all providers (c0b4e2db, #7139, #7147)
  • ngModelOptions:
  • ngSanitize: encode surrogate pair properly (627b0354, #5088, #6911)
  • ngSrc, ngSrcset: only interpolate if all expressions are defined (8d180383, #6984)
  • ngSwitch: properly support case labels with different numbers of transclude fns (ac37915e, #7372, #7373)

Features

  • $compile: allow SVG and MathML templates via special type property (f0e12ea7, #7265)
  • $interpolate: add optional allOrNothing param (c2362e3f)
  • FormController: commit $viewValue of all child controls when form is submitted (a0ae07bd, #7017)
  • NgMessages: introduce the NgMessages module and directives (0f4016c8)

Breaking Changes

Previously, it was possible to register a response interceptor like so:

// register the interceptor as a service
$provide.factory('myHttpInterceptor', function($q, dependency1, dependency2) {
  return function(promise) {
    return promise.then(function(response) {
      // do something on success
      return response;
    }, function(response) {
      // do something on error
      if (canRecover(response)) {
        return responseOrNewPromise
      }
      return $q.reject(response);
    });
  }
});

$httpProvider.responseInterceptors.push('myHttpInterceptor');

Now, one must use the newer API introduced in v1.1.4 (4ae46814), like so:

$provide.factory('myHttpInterceptor', function($q) {
  return {
    response: function(response) {
      // do something on success
      return response;
    },
    responseError: function(response) {
      // do something on error
      if (canRecover(response)) {
        return responseOrNewPromise
      }
      return $q.reject(response);
    }
  };
});

$httpProvider.interceptors.push('myHttpInterceptor');

More details on the new interceptors API (which has been around as of v1.1.4) can be found at https://docs.angularjs.org/api/ng/service/$http#interceptors

Previously, config blocks would be able to control behaviour of provider registration, due to being invoked prior to provider registration. Now, provider registration always occurs prior to configuration for a given module, and therefore config blocks are not able to have any control over a providers registration.

Example:

Previously, the following:

angular.module('foo', [])
  .provider('$rootProvider', function() {
    this.$get = function() { ... }
  })
  .config(function($rootProvider) {
    $rootProvider.dependentMode = "B";
  })
  .provider('$dependentProvider', function($rootProvider) {
     if ($rootProvider.dependentMode === "A") {
       this.$get = function() {
        // Special mode!
       }
     } else {
       this.$get = function() {
         // something else
       }
    }
  });

would have "worked", meaning behaviour of the config block between the registration of "$rootProvider" and "$dependentProvider" would have actually accomplished something and changed the behaviour of the app. This is no longer possible within a single module.

This commit changes the API on NgModelController, both semantically and in terms of adding and renaming methods.

  • $setViewValue(value) - This method still changes the $viewValue but does not immediately commit this change through to the $modelValue as it did previously. Now the value is committed only when a trigger specified in an associated ngModelOptions directive occurs. If ngModelOptions also has a debounce delay specified for the trigger then the change will also be debounced before being committed. In most cases this should not have a significant impact on how NgModelController is used: If updateOn includes default then $setViewValue will trigger a (potentially debounced) commit immediately.
  • $cancelUpdate() - is renamed to $rollbackViewValue() and has the same meaning, which is to revert the current $viewValue back to the $lastCommittedViewValue, to cancel any pending debounced updates and to re-render the input.

To migrate code that used $cancelUpdate() follow the example below:

Before:

$scope.resetWithCancel = function (e) {
  if (e.keyCode == 27) {
    $scope.myForm.myInput1.$cancelUpdate();
    $scope.myValue = '';
  }
};

After:

$scope.resetWithCancel = function (e) {
  if (e.keyCode == 27) {
    $scope.myForm.myInput1.$rollbackViewValue();
    $scope.myValue = '';
  }
}

v1.3.0-beta.7 proper-attribution (2014-04-25)

Bug Fixes

  • $location: don't clobber path during parsing of path (498835a1, #7199)

Performance Improvements

  • scope: ~10x speedup from sharing the child scope class. (8377e818)

v1.3.0-beta.6 expedient-caffeination (2014-04-21)

Bug Fixes

  • $animate: ensure class-based animations always perform a domOperation if skipped (708f2ba9, #6957)
  • $compile:
    • reference correct directive name in ctreq error (1192531e, #7062, #7067)
    • fix regression which affected old jQuery releases (ef64169d)
  • $location:
  • input: don't dirty model when input event triggered due to placeholder change (ff428e72, #2614, #5960)
  • limitTo: do not convert Infinity to NaN (5dee9e4a, #6771, #7118)
  • ngModelController: introduce $cancelUpdate to cancel pending updates (940fcb40, #6994, #7014)

Features

  • $resource: Make stripping of trailing slashes configurable. (3878be52)
  • Scope: add $watchGroup method for observing a set of expressions (21f93163)
  • injector: "strict-DI" mode which disables "automatic" function annotation (4b1695ec, #6719, #6717, #4504, #6069, #3611)
  • ngModelOptions: custom triggers and debounce of ngModel updates (dbe381f2, #1285)

Performance Improvements

  • $compile: watch interpolated expressions individually (0ebfa0d1)
  • $interpolate: speed up interpolation by recreating watchGroup approach (546cb429)

Breaking Changes

  • $interpolate: due to 88c2193c, the function returned by $interpolate no longer has a .parts array set on it.

    Instead it has two arrays:

    • .expressions, an array of the expressions in the interpolated text. The expressions are parsed with $parse, with an extra layer converting them to strings when computed
    • .separators, an array of strings representing the separations between interpolations in the text. This array is always 1 item longer than the .expressions array for easy merging with it

1.3.0-beta.5 chimeric-glitterfication (2014-04-03)

Bug Fixes

  • $animate:
    • insert elements at the start of the parent container instead of at the end (1cb8584e, #4934, #6275)
    • ensure the CSS driver properly works with SVG elements (c67bd69c, #6030)
  • $parse: mark constant unary minus expressions as constant (7914d346, #6932)
  • Scope:
    • revert the __proto__ cleanup as that could cause regressions (71c11e96)
    • more scope clean up on $destroy to minimize leaks (d64d41ed, #6794, #6856, #6968)
  • ngClass: handle ngClassOdd/Even affecting the same classes (c9677920, #5271)

Breaking Changes

  • $animate: due to 1cb8584e, $animate will no longer default the after parameter to the last element of the parent container. Instead, when after is not specified, the new element will be inserted as the first child of the parent container.

To update existing code, change all instances of $animate.enter() or $animate.move() from:

$animate.enter(element, parent);

to:

$animate.enter(element, parent, angular.element(parent[0].lastChild));

1.2.16 badger-enumeration (2014-04-03)

Bug Fixes

  • $animate:
    • ensure the CSS driver properly works with SVG elements (38ea5426, #6030)
    • prevent cancellation timestamp from being too far in the future (35d635cb, #6748)
    • run CSS animations before JS animations to avoid style inheritance (0e5106ec, #6675)
  • $parse: mark constant unary minus expressions as constant (6e420ff2, #6932)
  • Scope:
  • filter.ngdoc: Check if "input" variable is defined (a275d539, #6819)
  • input: don't perform HTML5 validation on updated model-value (b2363e31, #6796, #6806)
  • ngClass: handle ngClassOdd/Even affecting the same classes (55fe6d63, #5271)

Features

1.3.0-beta.4 inconspicuous-deception (2014-03-28)

Bug Fixes

  • $animate:
    • prevent cancellation timestamp from being too far in the future (ff5cf736, #6748)
    • make CSS blocking optional for class-based animations (1bebe36a, #6674, #6739)
    • run CSS animations before JS animations to avoid style inheritance (2317af68, #6675)
  • Scope: aggressively clean up scope on $destroy to minimize leaks (f552f251, #6794, #6856)
  • doc-gen: Run Gulp on Windows too (47ba6014, #6346)
  • filter.ngdoc: Check if "input" variable is defined (4a6d4de5, #6819)
  • input: don't perform HTML5 validation on updated model-value (b472d027, #6796, #6806)

Features

Breaking Changes

  • $animate: due to 1bebe36a,

    Any class-based animation code that makes use of transitions and uses the setup CSS classes (such as class-add and class-remove) must now provide a empty transition value to ensure that its styling is applied right away. In other words if your animation code is expecting any styling to be applied that is defined in the setup class then it will not be applied "instantly" unless a transition:0s none value is present in the styling for that CSS class. This situation is only the case if a transition is already present on the base CSS class once the animation kicks off.

Before:

.animated.my-class-add {
  opacity:0;
  transition:0.5s linear all;
}
.animated.my-class-add.my-class-add-active {
  opacity:1;
}

After:

.animated.my-class-add {
  transition:0s linear all;
  opacity:0;
}
.animated.my-class-add.my-class-add-active {
  transition:0.5s linear all;
  opacity:1;
}

Please view the documentation for ngAnimate for more info.

1.3.0-beta.3 emotional-waffles (2014-03-21)

Bug Fixes

  • ngAnimate: support webkitCancelRequestAnimationFrame in addition to webkitCancelAnimationFrame (c839f78b, #6526)
  • $http: allow sending Blob data using $http (b8cc71d4, #5012)
  • $httpBackend: don't error when JSONP callback is called with no parameter (6680b7b9, #4987, #6735)
  • $rootScope: ng-repeat can't handle NaN values. #4605 (fb6062fb, #4605)
  • $rootScope: $watchCollection should call listener with old value (78057a94, #2621, #5661, #5688, #6736)
  • angular.bootstrap: allow angular to load only once (748a6c8d, #5863, #5587)
  • jqLite: inheritedData() now traverses Shadow DOM boundaries via the host property of DocumentFragment (8a96f317, #6637)
  • ngCookie: convert non-string values to string (36528310, #6151, #6220)
  • ngTouch: update workaround for Webkit quirk (bc42950b, #6302)
  • orderBy: support string predicates containing non-ident characters (37bc5ef4, #6143, #6144)
  • select: avoid checking option element's selected property in render (f40f54c6, #2448, #5994)

Features

  • $compile: add support for $observer deregistration (299b220f, #5609)
  • ngMock.$httpBackend: added support for function as URL matcher (d6cfcace, #4580)

Breaking Changes

  • $compile: due to 299b220f, calling attr.$observe no longer returns the observer function, but a deregistration function instead. To migrate the code follow the example below:

Before:

directive('directiveName', function() {
  return {
    link: function(scope, elm, attr) {
      var observer = attr.$observe('someAttr', function(value) {
        console.log(value);
      });
    }
  };
});

After:

directive('directiveName', function() {
  return {
    link: function(scope, elm, attr) {
      var observer = function(value) {
        console.log(value);
      };

      attr.$observe('someAttr', observer);
    }
  };
});
  • $httpBackend: due to 6680b7b9, the JSONP behavior for erroneous and empty responses changed: Previously, a JSONP response was regarded as erroneous if it was empty. Now Angular is listening to the correct events to detect errors, i.e. even empty responses can be successful.

v1.2.15 beer-underestimating (2014-03-21)

Bug Fixes

  • $$RAFProvider: check for webkitCancelRequestAnimationFrame (e84da228, #6526)
  • $$rAF: always fallback to a $timeout incase native rAF isn't supported (ee8e4a94, #6654)
  • $compile: support templates with thead and tfoot root elements (ca0ac649, #6289)
  • $http:
  • $rootScope:
  • angular.bootstrap: only allow angular to load once (0d60f8d3, #5863, #5587)
  • jqLite: traverse host property for DocumentFragment in inheritedData() (98d825e1, #6637)
  • ngAnimate: setting classNameFilter disables animation inside ng-if (a41a2a1d, #6539)
  • ngCookie: convert non-string values to string (93d1c95c, #6151, #6220)
  • ngTouch: update workaround for desktop Webkit quirk (01a34f51, #6302)
  • orderBy: support string predicates containing non-ident characters (10d3e1e4, #6143, #6144)
  • select: avoid checking option element selected properties in render (dc149de9, #2448, #5994, #6769)

1.3.0-beta.2 silent-ventriloquism (2014-03-14)

Bug Fixes

  • $$rAF: always fallback to a $timeout in case native rAF isn't supported (7b5e0199, #6654)
  • $http: don't convert 0 status codes to 404 for non-file protocols (56e73ea3, #6074, #6155)
  • ngAnimate: setting classNameFilter disables animation inside ng-if (129e2e02, #6539)

Features

  • whitelist blob urls for sanitization of data-bound image urls (47ab8df4, #4623)

1.3.0-beta.1 retractable-eyebrow (2014-03-07)

Bug Fixes

Features

  • input: support types date, time, datetime-local, month, week (46bd6dc8, #5864)

Breaking Changes

  • build: due to eaa1d00b, As communicated before, IE8 is no longer supported.
  • input: types date, time, datetime-local, month, week now always require a Date object as model (46bd6dc8, #5864)

For more info: http://blog.angularjs.org/2013/12/angularjs-13-new-release-approaches.html

1.2.14 feisty-cryokinesis (2014-03-01)

Bug Fixes

  • $animate:
    • delegate down to addClass/removeClass if setClass is not found (18c41af0, #6463)
    • ensure all comment nodes are removed during a leave animation (f4f1f43d, #6403)
    • only block keyframes if a stagger is set to occur (e71e7b6c, #4225)
    • ensure that animateable directives cancel expired leave animations (e9881991, #5886)
    • ensure all animated elements are taken care of during the closing timeout (99720fb5, #6395)
    • fix for TypeError Cannot call method 'querySelectorAll' in cancelChildAnimations (c914cd99, #6205)
  • $http:
  • $parse: reduce false-positives in isElement tests (5fe1f39f, #4805, #5675)
  • input: use ValidityState to determine validity (c2d447e3, #4293, #2144, #4857, #5120, #4945, #5500, #5944)
  • isElement: reduce false-positives in isElement tests (75515852)
  • jqLite:
  • numberFilter: convert all non-finite/non-numbers/non-numeric strings to the empty string (cceb455f, #6188, #6261)
  • $parse: support trailing commas in object & array literals (6b049c74)
  • ngHref: bind ng-href to xlink:href for SVGAElement (2bce71e9, #5904)

Features

  • $animate: animate dirty, pristine, valid, invalid for form/fields (33443966, #5378)

Performance Improvements

  • $animate: use rAF instead of timeouts to issue animation callbacks (4c4537e6)
  • $cacheFactory: skip LRU bookkeeping for caches with unbound capacity (a4078fca, #6193, #6226)

1.2.13 romantic-transclusion (2014-02-14)

Bug Fixes

Features

  • filterFilter: support deeply nested predicate objects (b4eed8ad, #6215)

Breaking Changes

  • $animate:
    • due to 4f84f6b3, ngClass and {{ class }} will now call the setClass animation callback instead of addClass / removeClass when both a addClass/removeClass operation is being executed on the element during the animation.

      Please include the setClass animation callback as well as addClass and removeClass within your JS animations to work with ngClass and {{ class }} directives.

    • due to cf5e463a, Both the $animate:before and $animate:after DOM events must be now registered prior to the $animate operation taking place. The $animate:close event can be registered anytime afterwards.

      DOM callbacks used to fired for each and every animation operation that occurs within the $animate service provided in the ngAnimate module. This may end up slowing down an application if 100s of elements are being inserted into the page. Therefore after this change callbacks are only fired if registered on the element being animated.

1.2.12 cauliflower-eradication (2014-02-07)

Bug Fixes

  • $compile: retain CSS classes added in cloneAttachFn on asynchronous directives (5ed721b9, #5439, #5617)
  • $http:
  • $locale: minor grammar amends for the locale locale_lt (95be253f, #6164)
  • $q: make $q.reject support finally and catch (074b0675, #6048, #6076)
  • docs: clarify doc for "args" in $broadcast and $emit (caed2dfe, #6047)
  • filterFilter: don't interpret dots in predicate object fields as paths (339a1658, #6005, #6009)
  • http: make jshint happy (6609e3da)
  • jqLite: trim HTML string in jqLite constructor (36d37c0e, #6053)
  • mocks:
    • rename mock.animate to ngAnimateMock and ensure it contains all test helper code for ngAnimate (4224cd51, #5822, #5917)
    • remove usage of $animate.flushNext in favour of queing (906fdad0)
    • always call functions injected with inject with this set to the current spec (3bf43903, #6102)
    • refactor currentSpec to work w/ Jasmine 2 (95f0bf9b, #5662)
  • ngMock: return false from mock $interval.cancel() when no argument is supplied (dd24c783, #6103)
  • ngResource:

Breaking Changes

The animation mock module has been renamed from mock.animate to ngAnimateMock. In addition to the rename, animations will not block within test code even when ngAnimateMock is used. However, all function calls to $animate will be recorded into $animate.queue and are available within test code to assert animation calls. In addition, $animate.triggerReflow() is now only available when ngAnimateMock is used.

1.2.11 cryptocurrency-hyperdeflation (2014-02-03)

Bug Fixes

  • $compile: retain CSS classes added in cloneAttachFn on asynchronous directives (5ed721b9, #5439, #5617)
  • $http: update httpBackend to use ActiveXObject on IE8 if necessary (ef210e5e, #5677, #5679)
  • $q: make $q.reject support finally and catch (074b0675, #6048, #6076)
  • filterFilter: don't interpret dots in predicate object fields as paths (339a1658, #6005, #6009)
  • mocks: refactor currentSpec to work w/ Jasmine 2 (95f0bf9b, #5662)
  • ngResource: don't append number to '$' in url param value when encoding URI (ce1f1f97, #6003, #6004)

1.2.10 augmented-serendipity (2014-01-24)

Bug Fixes

  • $parse: do not use locals to resolve object properties (f09b6aa5, #5838, #5862)
  • a: don't call preventDefault on click when a SVGAElement has an xlink:href attribute (e0209169, #5896, #5897)
  • input: use Chromium's email validation regexp (79e519fe, #5899, #5924)
  • ngRoute: pipe preceding route param no longer masks ? or * operator (fd6bac7d, #5920)

Features

1.2.9 enchanted-articulacy (2014-01-15)

Bug Fixes

  • $animate:
    • ensure the final closing timeout respects staggering animations (ed53100a)
    • prevent race conditions for class-based animations when animating on the same CSS class (4aa9df7a, #5588)
    • correctly detect and handle CSS transition changes during class addition and removal (7d5d62da)
    • avoid accidentally matching substrings when resolving the presence of className tokens (524650a4)
  • $http: ensure default headers PUT and POST are different objects (e1cfb195, #5742, #5747, #5764)
  • $rootScope: prevent infinite $digest by checking if asyncQueue is empty when decrementing ttl (2cd09c9f, #2622)

Features

  • $animate:
    • provide support for DOM callbacks (dde1b294)
    • use requestAnimationFrame instead of a timeout to issue a reflow (4ae3184c, #4278, #4225)

Breaking Changes

  • $http: due to e1cfb195, it is now necessary to separately specify default HTTP headers for PUT, POST and PATCH requests, as these no longer share a single object.

    To migrate your code, follow the example below:

    Before:

      // Will apply to POST, PUT and PATCH methods
      $httpProvider.defaults.headers.post = {
          "X-MY-CSRF-HEADER": "..."
      };
    

    After:

      // POST, PUT and PATCH default headers must be specified separately,
      // as they do not share data.
      $httpProvider.defaults.headers.post =
          $httpProvider.defaults.headers.put =
          $httpProviders.defaults.headers.patch = {
              "X-MY-CSRF-HEADER": "..."
          };
    

1.2.8 interdimensional-cartography (2014-01-10)

Bug Fixes

  • $http:
  • $location: return '/' for root path in hashbang mode (63cd873f, #5650, #5712)
  • $parse: fix CSP nested property evaluation, and issue that prevented its tests from failing (3b1a4fe0, #5591, #5592)
  • closure: add Closure externs for angular.$q.Promise.finally (caeb7402, #4757)
  • ngMock window.inject: Remove Error 'stack' property changes (7e916455)

Features

1.2.7 emoji-clairvoyance (2014-01-03)

Bug Fixes

  • $animate:
    • ensue class-based animations are always skipped before structural post-digest tasks are run (bc492c0f, #5582)
    • remove trailing s from computed transition duration styles (50bf0296)
  • $http: (3d38fff8)
    • use ActiveX XHR when making PATCH requests on IE8 (6c17d02b, #2518, #5043)
    • fix 'type mismatch' error on IE8 after each request (fd9a03e1)
    • Ignore multiple calls to onreadystatechange with readyState=4 (4f572366, #5426)
  • $injector: remove the INSTANTIATING flag properly when done (186a5912, #4361, #5577)
  • $location:
  • $resource: prevent URL template from collapsing into an empty string (131e4014, #5455, #5493)
  • $sanitize: consider the size attribute as a valid/allowed attribute (056c8493, #5522)
  • Scope: don't let watch deregistration mess up the dirty-checking digest loop (884ef0db, #5525)
  • input:
    • use apply on the change event only when one isn't already in progress (a80049fd, #5293)
    • prevent double $digest when using jQuery trigger. (1147f219, #5293)
  • ngRepeat: allow for more flexible coding style in ngRepeat expression (c9705b75, #5537, #5598)
  • ngRoute: instantiate controller when template is empty (498365f2, #5550)
  • ngShow/ngHide, ngIf: functions with zero args should be truthy (01c5be46, #5414)

Performance Improvements

  • Scope: limit propagation of $broadcast to scopes that have listeners for the event (80e7a455, #5341, #5371)

1.2.6 taco-salsafication (2013-12-19)

Bug Fixes

  • $animate: use a scheduled timeout in favor of a fallback property to close transitions (54637a33, #5255, #5241, #5405)
  • $compile: remove invalid IE exceptional case for href (c7a1d1ab, #5479)
  • $location: parse xlink:href for SVGAElements (bc3ff2ce, #5472, #5198, #5199, #4098, #1420)
  • $log: should work in IE8 (4f5758e6, #5400)
  • $parse: return undefined if an intermetiate property's value is null (26d43cac, #5480)
  • closure: add type definition for Scope#$watchCollection (8f329ffb, #5475)
  • forEach: allow looping over result of querySelectorAll in IE8 (274a6734)
  • input: do not hold input for composition on Android (3dc18037, #5308)
  • jqLite: support unbind self within handler (2f91cfd0)
  • ngRepeat: allow multiline expressions (cbb3ce2c, #5000)
  • select: invalidate when multiple, required, and model is [] (5c97731a, #5337)

Features

  • jqLite: provide support for element.one() (937caab6)
  • ngAnimate: provide configuration support to match specific className values to trigger animations (cef084ad, #5357, #5283)

Performance Improvements

  • compile: add class 'ng-scope' before cloning and other micro-optimizations (f3a796e5, #5471)
  • $parse: use a faster path when the number of path parts is low (f4462319)
  • use faster check for $$ prefix (06c5cfc7)

1.2.5 singularity-expansion (2013-12-13)

Bug Fixes

  • $compile: allow literals in isolate scope references (43072e38, #5296)
  • angular-mocks: use copy of mock data in $httpBackend (f69dc162)
  • closure: add missing FormController extern definitions (1d5e18b0, #5303)
  • ngInclude: add template to DOM before linking other directives (30a8b7d0, #5247)
  • ngView: add template to DOM before linking other directives (f8944efe)

Performance Improvements

  • $injector: remove invoke optimization that doesn't work (05e4fd34, #5388)
  • $resource: use shallow copy instead of angular.copy (fcd2a813, #5300)
  • a: do not link when href or name exists in template (f3de5b6e, #5362)
  • jqLite: implement and use the empty method in place of html(‘’) (3410f65e, #4457)

Breaking Changes

  • angular-mocks: due to f69dc162, some tests that rely on identity comparison rather than equality comparison in checking mock http responses will be broken, since now each mock response is a copy of the original response. This is usually fixable by changing a .toBe() comparison to toEqual() inside of tests.

1.2.4 wormhole-blaster (2013-12-06)

Bug Fixes

  • $animate:
  • $compile:
    • update cloned elements if the template arrives after the cloning (b0972a2e)
    • ensure the isolated local watch lastValue is always in sync (2d0f6ccb, #5182)
  • $rootScope:
    • ensure that when the $destroy event is broadcast on $rootScope that it does something (d802ed1b, #5169)
    • ensure the phase is cleared within a digest if an exception is raised by a watcher (d3c486dd)
  • $sanitize: don't rely on YARR regex engine executing immediately in order to prevent object mutation (81b81856, #5193, #5192)
  • closure: closure compiler shouldn't rename .defaults.transformRequest (f01087f8)
  • input: ensure ngModelWatch() triggers second digest pass when appropriate (b6d54393, #5258, #5282)
  • isElement: return boolean value rather than truthy value. (2dbb6f9a, #4519, #4534)
  • jqLite: ignore incompatible nodes on find() (1169b544, #4120)
  • ngInit: evaluate ngInit before ngInclude (0e50810c, #5167, #5208)
  • ngSanitize: prefer textContent to innerText to avoid layout trashing (bf1972dc)

Performance Improvements

  • $parse: micro-optimization for ensureSafeObject function (689dfb16, #5246)
  • Scope: short-circuit after dirty-checking last dirty watcher (d070450c, #5272, #5287)

1.2.3 unicorn-zapper (2013-11-27)

Bug Fixes

  • $animate:
  • ensure blocked keyframe animations are unblocked before the DOM operation (2efe8230, #5106)
  • ensure animations are disabled during bootstrap to prevent unwanted structural animations (eed23332, #5130)
  • $sanitize: use the same whitelist mechanism as $compile does (33352348, #3748)
  • input: react to form auto completion, through the change event, on modern browsers (a090400f, #1460)
  • $attrs: add $attrs.$attr to externs so that it isn't renamed on js minification (bcca8054)

Features

No new features in this release

Breaking Changes

There are no breaking changes in this release (promise!)

1.2.2 consciousness-inertia (2013-11-22)

Bug Fixes

  • $animate:
    • ensure keyframe animations are blocked around the reflow (6760d7a3, #5018)
    • ensure transition animations are unblocked before the dom operation occurs (062fbed8, #5014, #4265)
    • ensure addClass/removeClass animations do not snap during reflow (76e4db6f, #4892)
    • ensure the DOM operation isn't run twice (7067a8fb, #4949)
  • $compile:
    • secure form[action] & iframe[srcdoc] (0421cb42, #4927, #4933)
    • ensure CSS classes are added and removed only when necessary (0cd7e8f2)
  • $httpBackend: only IE8 and below can't use script.onload for JSONP (a3172a28, #4523, #4527, #4922)
  • $parse: allow for new lines in expr when promise unwrapping is on (40647b17, #4718)
  • $resource: Always return a resource instance when calling class methods on resources. (f6ecf9a3, #4545, #5061)
  • httpBackend: should not read response data when request is aborted (6f1050df, #4913, #4940)
  • loader: expose $$minErr to modules such asngResource (9e89a31b, #5050)
  • ngAnimate:
    • correctly retain and restore existing styles during and after animation (c42d0a04, #4869)
    • use a fallback CSS property that doesn't break existing styles (1d50663b, #4902, #5030)
  • ngClass: ensure that ngClass only adds/removes the changed classes (6b8bbe4d, #4960, #4944)
  • ngController: fix issue with ngInclude on the same element (6288cf5c, #4431)
  • ngInclude:
    • Don't throw when the ngInclude element contains content with directives. (0a7cbb33)
    • allow ngInclude to load scripts when jQuery is included (c47abd0d, #3756)
  • ngMock: fixes httpBackend expectation with body object (4d16472b, #4956)
  • ngView: Don't throw when the ngView element contains content with directives. (e6521e74, #5069)
  • tests: Correct tests for IE11 (57924234, #5046)
  • input: hold listener during text composition (a4e6d962, #4684)

1.2.1 underscore-empathy (2013-11-14)

Bug Fixes

  • $compile:
    • accessing controllers of transcluded directives from children (90f87072, #4935)
    • correctly handle interpolated style in replace templates (e1254b26, #4882)
  • $resource: don't use $parse for @dotted.member (9577702e)
  • bootstrap: make IE8 happy (a61b65d0)
  • loader: don't rely on internal APIs (8425e9fe, #4437, #4874)
  • minErr: remove references to internal APIs (94764ee0)
  • ngIf: don't create multiple elements when changing from a truthy value to another thruthy value (4612705e, #4852)
  • urlUtils:

Features

1.2.0 timely-delivery (2013-11-08)

Features

  • animations:
    • ensure CSS transitions can work with inherited CSS class definitions (9d69a0a7)
    • provide support for staggering animations with CSS (74848307)
  • $parse: secure expressions by hiding "private" properties (3d6a89e8)
  • docs:
    • provide index pages for each angular module (a7e12b79)
    • add forward slash shortcut key for search bar (74912802)
  • jqLite: expose isolateScope() getter similar to scope() (27e9340b)
  • misc: add externs file for Closure Compiler (9d0a6977)

Bug Fixes

  • $animate:
    • don't force animations to be enabled (98adc9e0)
    • only apply the fallback property if any transition animations are detected (94700807)
    • avoid hanging animations if the active CSS transition class is missing (b89584db, #4732, #4490)
    • ensure staggering animations understand multiple delay values (41a2d5b3)
    • ensure the active class is not applied if cancelled during reflow (e53ff431, #4699)
    • use direct DOM comparison when checking for $rootElement (d434eabe, #4679)
    • ensure former nodes are fully cleaned up when a follow-up structural animation takes place (7f0767ac, #4435)
    • ensure enable/disable animations work when the document node is used (6818542c, #4669)
    • skip unnecessary addClass/removeClass animations (76b628bc, #4401, #2332)
    • ensure animations work properly when the $rootElement is being animated (2623de14, #4397, #4231)
    • only cancel class-based animations if the follow-up class contains CSS transition/keyframe animation code (f5289fe8, #4463, #3784)
  • $compile:
    • don't leak isolate scope state when replaced directive is used multiple times (b5af198f)
    • correct isolate scope distribution to controllers (3fe4491a)
    • replaced element has isolate scope (97c7a4e3)
    • only pass isolate scope to children that belong to the isolate directive (d0efd5ee)
    • make isolate scope truly isolate (909cabd3, #1924, #2500)
    • don't instantiate controllers twice for element transclude directives (18ae985c, #4654)
    • attribute bindings should not break due to terminal directives (79223eae, #4525, #4528, #4649)
    • instantiate controlers when re-entering compilation (faf5b980, #4434, #4616)
  • $injector: allow a constructor function to return a function (c22adbf1)
  • $parse: check function call context to be safe (6d324c76, #4417)
  • angular-mocks: add inline dependency annotation (6d23591c, #4448)
  • animateSpec: run digest to enable animations before tests (aea76f0d)
  • bootstrap-prettify: share $animate and $$postDigestQueue with demo apps (1df3da36)
  • csp:
  • docModuleComponents: implement anchor scroll when content added (eb51b024, #4703)
  • input: keep track of min/max attars on-the-fly (4b653aea)
  • ngAnimate: fix cancelChildAnimations throwing exception (b9557b0a, #4548)
  • ngClassSpec: clear animation enable fn from postDigestQueue (ffa9d0a6)
  • ngEventDirectives: parse expression only once during compile phase. (9a828738)
  • ngIf:
    • destroy child scope when destroying DOM (9483373c)
    • ngIf removes elements dynamically added to it (e19067c9)
  • ngInclude: only run anchorScroll after animation is done (d378f550, #4723)
  • ngMock: throw more descriptive errors for $animate.flushNext() (6fb19157)
  • ngModel: deregister from the form on scope not DOM destruction (8f989d65, #4226, #4779)
  • ngScenario: correctly disable animations for end 2 end tests (9d004585)
  • ngView:
    • only run anchorScroll after animation is done (da344daa)
    • ensure the new view element is placed after the old view element (3f568b22, #4362)
  • ngdocs:
    • create mock Doc objects correctly (d4493fda)
    • shortDescription() should not error if no description (4c8fa353)
    • remove the side search bar (6c20ec19)

Breaking Changes

  • $compile:

    • due to d0efd5ee, Child elements that are defined either in the application template or in some other directives template do not get the isolate scope. In theory, nobody should rely on this behavior, as it is very rare - in most cases the isolate directive has a template.

    • due to 909cabd3, 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 and #2500

    Previously, the interpolation priority was -100 in 1.2.0-rc.2, and 100 before 1.2.0-rc.2. Before this change the binding was setup in the post-linking phase.

    Now the attribute interpolation (binding) executes as a directive with priority 100 and the binding is set up in the pre-linking phase.

    Closes #4525, #4528, and #4649

  • $parse: due to 3d6a89e8,

    This commit introduces the notion of "private" properties (properties whose names begin and/or end with an underscore) on the scope chain. These properties will not be available to Angular expressions (i.e. {{ }} interpolation in templates and strings passed to $parse) They are freely available to JavaScript code (as before).

    Motivation

    Angular expressions execute in a limited context. They do not have direct access to the global scope, window, document or the Function constructor. However, they have direct access to names/properties on the scope chain. It has been a long standing best practice to keep sensitive APIs outside of the scope chain (in a closure or your controller.) That's easier said that done for two reasons:

    1. JavaScript does not have a notion of private properties so if you need someone on the scope chain for JavaScript use, you also expose it to Angular expressions
    2. the new "controller as" syntax that's now in increased usage exposes the entire controller on the scope chain greatly increaing the exposed surface.

    Though Angular expressions are written and controlled by the developer, they:

    1. Typically deal with user input
    2. Don't get the kind of test coverage that JavaScript code would

    This commit provides a way, via a naming convention, to allow publishing/restricting properties from controllers/scopes to Angular expressions enabling one to only expose those properties that are actually needed by the expressions.

  • csp: due to 08f376f2, triggering ngCsp directive via ng:csp attribute is not supported any more. Please use data-ng-csp instead.

  • jqLite: due to 27e9340b, jqLite.scope() (connonly used through angular.element(node).scope()) does not return the isolate scope on the element that triggered directive with isolate scope. Use jqLite.isolateScope() instead.

1.2.0-rc.3 ferocious-twitch (2013-10-14)

Features

  • $interval: add a service wrapping setInterval (2b5ce84f)

  • $sce: simpler patterns for $sceDelegateProviders white/blacklists (93ce5923, #4006)

  • $filter: allow map of filters to be registered (4033cf28, #4036, #4091)

  • $compile: support tel: links in a[href] (e7730297)

  • Directives:

    • ngRepeat: support repeating over ngInclude and other directives that replace repeated nodes (9efa46ae, #3104)
    • event directives: add ngCopy, ngCut, and ngPaste (147c6929, #4172)
  • Misc:

    • jQuery 1.10.x support (e0c134b8, #3764)
    • minErr: linkify error messages on minErr docs pages (6aaae062)
    • tutorial: add step 12 on animations to the phonecat tutorial (ad525645)

Bug Fixes

  • $compile:

    • abort compilation when duplicate element transclusion (63c5334c, #3893, #4217, #3307)
    • make order directives w/ same priority deterministic (4357da85)
    • fix (reverse) directive postLink fn execution order (31f190d4, #3558)
    • don't terminate compilation for regular transclusion directives (fe214501)
    • ng-attr to support dash separated attribute names (8e6e3eba)
    • allow interpolations for non-event handlers attrs (8e1276c0)
    • link parents before traversing (742271ff, #3792, #3923, #3935, #3927)
    • collect ranges on multiple directives on one element (6a8edc1d, #4002)
  • $parse:

    • deprecate promise unwrapping and make it an opt-in (5dc35b52, #4158, #4270)
    • disallow access to window and dom in expressions (be0b4856)
  • $httpBackend:

  • $location:

  • $log: prevent logging undefined for $log in IE (4ff1a650, #1705)

  • Scope:

    • $evalAsync executes on the right scope (10cc1a42)
    • make stopPropagation only stop its own event (47f7bd70, #4204)
  • Filters:

    • date: allow negative millisecond value strings (025c9219)
  • Directives:

    • correct priority of structural directives (ngRepeat, ngSwitchWhen, ngIf, ngInclude, ngView) (b7af76b4)
    • input: false is no longer an empty value by default (b56b21a8, #3490)
    • ngBindHtml: watch string value instead of wrapper (e2068ad4, #3932)
    • ngOptions: ignore object properties which start with $ (aa3c54c7)
    • ngRepeat: correctly track elements even when the collection is initially undefined (31c56f54, #4145, #3964)
    • ngTransclude: detect ngTranslude usage without a transclusion directive (5a1a6b86, #3759)
  • jqLite:

    • ignore class methods on comment elements (64fd2c42)
    • use get/setAttribute so that jqLite works on SVG nodes (c785267e, #3858)
  • Misc:

    • isArrayLike: correctly handle string primitives (5b8c7884, #3356)
    • protect calls to hasOwnProperty in public API (7a586e5c, #3331)
  • ngRoute:

    • ngView: IE8 regression due to expando on non-element nodes (255e8c13, #3971)
    • $route: parametrized routes do not match against locations that would not valorize each parameters. (0ff86c32)
  • ngResource:

  • ngSanitize:

    • sanitize DOCTYPE declarations correctly (e66c23fe, #3931)
    • sanitizer should not accept as a valid comment (21e9e8cf)
  • ngTouch:

  • ngAnimate:

    • ensure that a timeStamp is created if not provided by the browser event (cd216c4c, #3053)
    • perform internal caching on getComputedStyle to boost the performance of CSS3 transitions/animations (b1e604e3, #4011, #4124)
    • ensure structural animations skip all child animations even if no animation is present during compile (cc584607, #3215)
    • cancel any ongoing child animations during move and leave animations (3f31a7c7)
    • ensure elapsedTime always considers delay values (079dd939)
    • ensure transition-property is not changed when only keyframe animations are in use (2df3c9f5, #3933)
    • avoid completing the animation asynchronously unless CSS transtiions/animations are present (2a63dfa6, #4023, #3940)
    • ensure that delays are always considered before an animation closes (0a63adce, #4028)
    • check elapsedTime on current event (d50ed6bf)
    • support addClass/removeClass animations on SVG nodes (c785267e, #3858)
  • ngScenario:

Breaking Changes

  • $compile: due to 31f190d4, the order of postLink fn is now mirror opposite of the order in which corresponding preLinking and compile functions execute.

    Previously the compile/link fns executed in this order controlled via priority:

    • CompilePriorityHigh, CompilePriorityMedium, CompilePriorityLow
    • compile child nodes
    • PreLinkPriorityHigh, PreLinkPriorityMedium, PreLinkPriorityLow
    • link child nodes
    • PostLinkPriorityHigh, PostLinkPriorityMedium, PostLinkPriorityLow

    This was changed to:

    • CompilePriorityHigh, CompilePriorityMedium, CompilePriorityLow
    • compile child nodes
    • PreLinkPriorityHigh, PreLinkPriorityMedium, PreLinkPriorityLow
    • link child nodes
    • PostLinkPriorityLow, PostLinkPriorityMedium , PostLinkPriorityHigh

    Very few directives in practice rely on order of postLinking function (unlike on the order of compile functions), so in the rare case of this change affecting an existing directive, it might be necessary to convert it to a preLinking function or give it negative priority (look at the diff of this commit to see how an internal attribute interpolation directive was adjusted).

  • $parse:

    • due to 5dc35b52, $parse and templates in general will no longer automatically unwrap promises. This feature has been deprecated and if absolutely needed, it can be reenabled during transitional period via $parseProvider.unwrapPromises(true) api.
    • due to b6a37d11, feature added in rc.2 that unwraps return values from functions if the values are promises (if promise unwrapping is enabled - see previous point), was reverted due to breaking a popular usage pattern.
  • directives: due to b7af76b4, the priority of ngRepeat, ngSwitchWhen, ngIf, ngInclude and ngView has changed. This could affect directives that explicitly specify their priority.

    In order to make ngRepeat, ngSwitchWhen, ngIf, ngInclude and ngView work together in all common scenarios their directives are being adjusted to achieve the following precendence:

    Directive        | Old Priority | New Priority
    =============================================
    ngRepeat         | 1000         | 1000
    ---------------------------------------------
    ngSwitchWhen     | 500          | 800
    ---------------------------------------------
    ngIf             | 1000         | 600
    ---------------------------------------------
    ngInclude/ngView | 1000         | 400
    
  • form/ngForm due to 7a586e5c, Inputs with name equal to "hasOwnProperty" are not allowed inside form or ngForm directives.

    Before, inputs whose name was "hasOwnProperty" were quietly ignored and not added to the scope. Now a badname exception is thrown.

    Using "hasOwnProperty" for an input name would be very unusual and bad practice.

    Either do not include such an input in a form or ngForm directive or change the name of the input.

  • ngScenario: due to 28f56a38, browserTrigger now uses an eventData object instead of direct parameters for mouse events. To migrate, place the keys,x and y parameters inside of an object and place that as the third parameter for the browserTrigger function.

1.2.0-rc.2 barehand-atomsplitting (2013-09-04)

Features

  • Scope: asynchronously auto-flush $evalAsync queue when outside of $digest cycle (6b91aa0a, #3539, #2438)
  • minErr: log minerr doc url in development builds (37123cd2, #3566)
  • ngMock:
    • allow passing an object literal as shorthand to module (f737c97d)
    • add support for creating dynamic style sheets within test code (fb3a7db0)

Bug Fixes

  • $http: allow empty responses to be cached (8e48c4ff, #3809)

  • $injector: don't parse fns with no args (44b6b72e)

  • $parse: handle promises returned from parsed function calls (3a658220, #3503)

  • $q:

    • reject should catch & forward exceptions thrown in error callbacks (5d9f4205)
    • fix forwarding resolution when callbacks aren't functions (7d188d63, #3535)
  • $location: fix history problems on Boxee box (eefcdad0)

  • $timeout: clean deferreds immediately after callback exec/cancel (920a3804)

  • Directives:

    • ngTransclude:
      • clear the translusion point before transcluding (eed299a3)
      • make the transclusion available to parent post-link function (bf79bd41)
    • ngView: ensure ngClass works with together with ngView's transclusion behavior (40c0220c)
  • Filters:

  • Misc:

  • i18n: remove obsolete locale files (6382e21f)

  • ngAnimate:

    • ensure that ngClass is always compiled before enter, leave and move animations are applied (36ad40b1, #3727, #3603)
    • cut down on extra $timeout calls (4382df03)
    • skip ngAnimate animations if the provided element already has transitions applied to it (7c605ddf, #3587)
    • only apply a timeout when transitions or keyframe animations are used (ee2f3d21, #3613)
    • ensure older versions of webkit work for animations (b1a43cd0)
  • ngMocks: $logProvider should not use internal APIs (baaa73ee, #3612)

Breaking Changes

  • i18n: due to 6382e21f, some uncommon region-specific local files were removed.

1.0.8 bubble-burst (2013-08-22)

Contains only these fixes cherry-picked from v1.2.0rc1.

Bug Fixes

  • $compile:

  • $http: ensure case-insensitive header overriding (25d9f5a8)

  • $location:

    • default to / for the url base if no base[href] (cbe31d8d, #2762)
    • prevent infinite digest error due to IE bug (97abb124, #2802)
    • don't crash on invalid query parameters (b9dcb35e)
  • $parse: move global getter out of parse.js (099138fb)

  • $q: call reject() even if $exceptionHandler rethrows (d59027c4)

  • $timeout: clean deferreds immediately after callback exec/cancel (ac69392c)

  • $sanitize: match URI schemes case-insensitively (fcd761b9, #3210)

  • Scope: watches can be safely unregistered inside watch handlers (a4ec2979, #2915)

  • ngMock

    • $timeout should forward delay argument (a5fb372e)
  • jqLite:

    • return array from multi select in val() (01cd3495)
    • forgive unregistration of a non-registered handler (ac5b9055)
    • prepend array in correct order (63414b96)
    • correctly monkey-patch core jQuery methods (815053e4)
  • Directives:

    • form: pick the right attribute name for ngForm (dc1e55ce, #2997)
    • input: fix the email regex to accept TLDs up to 6 characters long (ad76e77f)
    • ngCloak: hide element even when CSS 'display' is set (06b0930b)
    • ngSubmit: expose $event to ngSubmit callback (b0d5f062)
    • ngValue: made ngValue to write value attribute to element (3b898664)
  • Filters:

    • number: always convert scientific notation to decimal (408e8682)
    • orderBy: remove redundant if statement (ec1cece2)
  • i18n: Do not transform arrays into objects (751c77f8)

  • jqLite:

    • return array from multi select in val() (01cd3495)
    • forgive unregistration of a non-registered handler (ac5b9055)
    • prepend array in correct order (63414b96)
    • correctly monkey-patch core jQuery methods (815053e4)
  • Misc:

    • angular.copy: change angular.copy to correctly clone RegExp (5cca077e, #3473, #3474)
    • angular.equals:
      • add support for regular expressions (a357649d, #2685)
      • {} and [] should not be considered equivalent (da1f7c76)
    • angular.toJson: skip JSON.stringify for undefined (332a3c79)

1.2.0rc1 spooky-giraffe (2013-08-13)

Full Commit Log

Features

  • ngAnimate: complete rewrite of animations (81923f1e)

  • $sce: new $sce service for Strict Contextual Escaping and lots of other security enhancements (bea9422e)

  • minErr: add error message minification and better error messages (c8fcf3b3, 09fa0656, b8ea7f6a)

  • $compile:

    • support animation hooks bindings to class attributes (f2dfa891)
    • support multi-element directive (e46100f7)
    • support "Controller as" instance syntax for directives (b3777f27)
  • $http: accept function as headers value (a7150f12)

  • $q:

    • add .catch() as shorthand for defining promise error handlers (a207665d, #2048, #3476)
    • added support for promise notification (2a5c3555)
  • $resource:

    • support an unescaped URL port in the url template (b94ca12f, #2778)
    • expose promise as $promise instead of only $then (05772e15)
  • $route: express style route matching (support for optional params and new wildcard syntax) (04cebcc1)

  • jqLite: switch bind/unbind to more recent jQuery on/off (f1b94b4b)

  • Misc:

  • Directives:

    • add ngFocus and ngBlur directives (2bb27d49, #1277)

    • ngRepeat: add $even and $odd props to iterator (52b8211f)

    • ngForm: supports namespaces in form names (8ea802a1)

    • ngBindHtml: combine ng-bind-html and ng-bind-html-unsafe (dae69473)

    • ngPluralize: add alternative mapping using attributes (a170fc1a, #2454)

  • ngMobile/ngTouch:

    • emit swipeleft and swiperight events (ab189142)
    • refactor swipe logic from ngSwipe directive to $swipe service. (f4c6b2c7)
  • ngMock:

    • $timeout.flushNext can expect specific timeout delays (462ed033)
    • support delay limit for $timeout.flush (b7fdabc4)
    • support a matching function for data param (08daa779)
  • scenario: expose jQuery for usage outside of angular scenario (3fdbe81a)

  • ngDocs:

    • provide support for user to jump between different versions of the angularjs doc (46dfb92a)
    • add links to source for API (52d6a599)
    • support popover, foldouts and foldover annotations (ef229688)
    • provide documentation for the new ngRepeat repeater syntax (b3650457)
    • provide support for inline variable hinting (21c70729)

Bug Fixes

  • $compile:

    • correct controller instantiation for async directives (c173ca41, #3493, #3482, #3537, #3540)
    • always instantiate controllers before pre-link fns run (5c560117, #3493, #3482, #3514)
    • always instantiate controllers in parent->child order (45f9f623, #2738)
    • don't check attr.specified on non-ie7 (f9ea69f6, #3231, #2160)
    • allow data: image URIs in img[src] bindings (3e39ac7e)
    • empty normalized href url should pass sanitation check (fc8c9baa, #2219)
    • prevent infinite loop w/ replace+transclude directives (69f42b76, #2155)
    • reject multi-expression interpolations for src attribute (38deedd6)
    • disallow interpolations for DOM event handlers (39841f2e)
    • sanitize values bound to img[src] (1adf29af)
    • support multi-element group over text nodes (b28f9694)
    • correct component transclusion on compilation root. (15e1a29c)
  • $http:

    • allow interceptors to completely override headers (514dc0eb, #2770)
    • treat headers as case-insensitive when overriding defaults (53359d54)
  • $location:

    • don't initialize url hash in hashbang mode unnecessarily (d4d34aba)
    • prevent infinite digest error due to IE bug (dca23173, #2802)
    • in html5 mode, default to / for the url base if no base[href] (aef09800, #2762)
    • fix parameter handling on search() (705c9d95)
  • $parse:

    • unwrap promise when setting a field (61906d35, #1827)
    • disallow access to Function constructor (5349b200)
  • $q: call reject() even if $exceptionHandler rethrows (664526d6)

  • $resource: check whether response matches action.isArray (a644ca7b, #2255)

  • $sanitize: match URI schemes case-insensitively (7fef06fe, #3210)

  • Scope:

    • ensure that isolate scopes use the main evalAsync queue (3967f5f7)
    • watches can now be safely unregistered inside watch handlers (8bd6619b, #2915)
  • jqLite:

    • properly detect unsupported calls for on()/off() (3824e400, 4f5dfbc3, #3501)
    • return array from multi select in val() (306a6134)
    • forgive unregistration of a non-registered handler (ab59cc6c)
    • support space-separated events in off (bdd4e982, #3256)
    • prepend array in correct order (fd87eb0c)
    • allow override of jqLite.triggerHandler event object (0cac8729)
    • added optional name arg in removeData (e1a050e6)
    • correctly monkey-patch core jQuery methods (da5f537c)
  • i18n: Do not transform arrays into objects (b3d7a038)

  • ngMobile/ngTouch:

  • ngMock:

    • keep withCredentials on passThrough (3079a6f4)
    • keep mock.$log the api in sync with $log (f274c0a6, #2343)
  • ngScenario: select().option(val) should prefer exact value match (22a9b1ac, #2856)

  • Directives:

    • ngRepeat:

    • ngShowHide: change the .ng-hide CSS class to use an !important flag (246c1439)

    • ngSubmit: expose $event to ngSubmit callback (3371fc25)

    • ngValue: made ngValue to write value attribute to element (09a1e7af)

    • ngView: ensure ngView is terminal and uses its own manual transclusion system (87405e25)

    • ngCloak: hide ngCloak-ed element even when CSS 'display' is set (3ffddad1)

    • input[email]: fix the email regex to accept TLDs up to 6 characters long (af731354)

    • form: pick the right attribute name for ngForm (0fcd1e3b, #2997)

    • select: don't support binding to select[multiple] (d87fa004, #3230)

  • Filters:

    • numberFilter: always convert scientific notation to decimal (a13c01a8)
  • Misc:

    • detect transition/animation on older Android browsers (ef5bc6c7)
    • handle duplicate params in parseKeyValue/toKeyValue (80739409)
    • don't crash on invalid query parameters (8264d080)
    • change angular.copy to correctly clone RegExp (f80730f4, #3473, #3474)
    • angular.equals now supports for regular expressions (724819e3, #2685)
    • angular.equals should not match keys defined in the prototype chain (7829c50f)
    • angular.equals should not consider {} and [] to be equivalent (1dcafd18)
    • angular.bootstrap should throw an error when bootstrapping a bootstrapped element (3ee744cc)
    • angular.toJson should skip JSON.stringify for undefined (5a294c86)
    • change css wrapping in grunt to prepend styles to the top of the head tag (fbad068a)

Breaking Changes

  • ngAnimate: due to 81923f1e, too many things changed, we'll write up a separate doc with migration instructions and will publish it at http://yearofmoo.com. Please check out the ngAnimate module docs and $animate api docs in the meantime.

  • $compile:

    • due to 1adf29af and 3e39ac7e, img[src] URLs are now being sanitized and a whitelist configured via $compileProvider can be used to configure what safe urls look like.

      By default all common protocol prefixes are whitelisted including data: URIs with mime types image/*. Therefore this change is expected to have no impact on apps that don't contain malicious image links.

    • due to 38deedd6, binding more than a single expression to *[src] or *[ng-src] with the exception of <a> and <img> elements is not supported.

      Concatenating expressions makes it hard to understand whether some combination of concatenated values are unsafe to use and potentially subject to XSS vulnerabilities. To simplify the task of auditing for XSS issues, we now require that a single expression be used for *[src/ng-src] bindings such as bindings for iframe[src], object[src], etc. (but not img[src/ng-src] since that value is sanitized).

    This change ensures that the possible pool of values that are used for data-binding is easier to trace down.

    To migrate your code, follow the example below:

      Before:
          JS:
              scope.baseUrl = 'page';
              scope.a = 1;
              scope.b = 2;
          HTML:
              <!-- Are a and b properly escaped here? Is baseUrl
                   controlled by user? -->
              <iframe src="{{baseUrl}}?a={{a}&b={{b}}">
    
      After:
          JS:
              var baseUrl = "page";
              scope.getIframeSrc = function() {
                // There are obviously better ways to do this.  The
                // key point is that one will think about this and do
                // it the right way.
                var qs = ["a", "b"].map(function(value, name) {
                    return encodeURIComponent(name) + "=" +
                           encodeURIComponent(value);
                  }).join("&");
                // baseUrl isn't on scope so it isn't bound to a user
                // controlled value.
                return baseUrl + "?" + qs;
              }
          HTML: <iframe src="{{getIframeSrc()}}">
    
    • due to 39841f2e, Interpolations inside DOM event handlers are disallowed.

      DOM event handlers execute arbitrary Javascript code. Using an interpolation for such handlers means that the interpolated value is a JS string that is evaluated. Storing or generating such strings is error prone and leads to XSS vulnerabilities. On the other hand, ngClick and other Angular specific event handlers evaluate Angular expressions in non-window (Scope) context which makes them much safer.

      To migrate the code follow the example below:

      Before:

      JS:   scope.foo = 'alert(1)';
      HTML: <div onclick="{{foo}}">
      

      After:

      JS:   scope.foo = function() { alert(1); }
      HTML: <div ng-click="foo()">
      
    • due to e46100f7, existing directives with name ending with "-start" or "-end" will stop working.

      This change was necessary to enable multi-element directives. The best fix is to rename existing directives, so that they don't end with these suffixes.

  • $q: due to f078762d, the always method is now exposed as finally.

    The reason for this change is to align $q with the Q promise library, despite the fact that this makes it a bit more difficult to use with non-ES5 browsers, like IE8.

    finally also goes well together with catch api that was added to $q recently and is part of the DOM promises standard.

    To migrate the code follow the example below:

    Before:

    $http.get('/foo').always(doSomething);
    

    After:

    $http.get('/foo').finally(doSomething);
    

    or for IE8 compatible code:

    $http.get('/foo')['finally'](doSomething);
    
  • $resource:

    • due to 05772e15, resource instance does not have a $then function anymore. Use the $promise.then instead.

      Before:

      Resource.query().$then(callback);
      

      After:

      Resource.query().$promise.then(callback);
      
    • due to 05772e15, instance methods return the promise rather than the instance itself.

      Before:

      resource.$save().chaining = true;
      

      After:

      resource.$save();
      resource.chaining = true;
      
    • due to 05772e15, on success, the resource promise is resolved with the resource instance rather than http response object.

      Use interceptor api to access the http response object.

      Before:

      Resource.query().$then(function(response) {...});
      

      After:

      var Resource = $resource('/url', {}, {
        get: {
          method: 'get',
          interceptor: {
            response: function(response) {
              // expose response
              return response;
            }
          }
        }
      });
      
  • $route:

    • due to 04cebcc1, the syntax for named wildcard parameters in routes has changed from *wildcard to :wildcard*

      To migrate the code, follow the example below. Here, *highlight becomes :highlight*:

      Before:

      $routeProvider.when('/Book1/:book/Chapter/:chapter/*highlight/edit',
                {controller: noop, templateUrl: 'Chapter.html'});
      

      After:

      $routeProvider.when('/Book1/:book/Chapter/:chapter/:highlight*/edit',
              {controller: noop, templateUrl: 'Chapter.html'});
      
    • due to 5599b55b, applications that use $route will now need to load an angular-route.js file and define a dependency on the ngRoute module.

      Before:

      ...
      <script src="angular.js"></script>
      ...
      var myApp = angular.module('myApp', ['someOtherModule']);
      ...
      

      After:

      ...
      <script src="angular.js"></script>
      <script src="angular-route.js"></script>
      ...
      var myApp = angular.module('myApp', ['ngRoute', 'someOtherModule']);
      ...
      
  • $location: due to 80739409, $location.search now supports multiple keys with the same value provided that the values are stored in an array in $location.search.

    Before this change:

    • parseKeyValue only took the last key overwriting all the previous keys;
    • toKeyValue joined the keys together in a comma delimited string.

    This was deemed buggy behavior. If your server relied on this behavior then either the server should be fixed, or a simple serialization of the array should be done on the client before passing it to $location.

  • ngBindHtml, sce: due to dae69473,

    ngHtmlBindUnsafe has been removed and replaced by ngHtmlBind (which has been moved from ngSanitize module to the core ng module). ngBindHtml provides ngHtmlBindUnsafe like behavior (evaluate an expression and innerHTML the result into the DOM) when bound to the result of $sce.trustAsHtml(string). When bound to a plain string, the string is sanitized via $sanitize before being innerHTML'd. If the $sanitize service isn't available (ngSanitize module is not loaded) and the bound expression evaluates to a value that is not trusted an exception is thrown.

  • ngForm: due to 8ea802a1,

    If you have form names that will evaluate as an expression:

    <form name="ctrl.form">
    

    And if you are accessing the form from your controller:

    Before:

    function($scope) {
      $scope['ctrl.form'] // form controller instance
    }
    

    After:

    function($scope) {
      $scope.ctrl.form // form controller instance
    }
    

    This makes it possible to access a form from a controller using the new "controller as" syntax. Supporting the previous behavior offers no benefit.

  • ngView: due to 7d69d52a, previously ngView only updated its content, after this change ngView will recreate itself every time a new content is included. This ensures that a single rootElement for all the included contents always exists, which makes definition of css styles for animations much easier.

  • ngInclude: due to aa2133ad, previously ngInclude only updated its content, after this change ngInclude will recreate itself every time a new content is included. This ensures that a single rootElement for all the included contents always exists, which makes definition of css styles for animations much easier.

  • select: due to d87fa004, binding to select[multiple] directly or via ngMultiple (ng-multiple) directive is not supported. This feature never worked with two-way data-binding, so it's not expected that anybody actually depends on it.

  • ngMobile: due to 94ec84e7, since all the code in the ngMobile module is touch related, we are renaming the module to ngTouch.

    To migrate, please replace all references to "ngMobile" with "ngTouch" and "angular-mobile.js" to "angular-touch.js".

1.1.5 triangle-squarification (2013-05-22)

Note: 1.1.x releases are considered unstable. They pass all tests but we reserve the right to change new features/apis in between minor releases. Check them out and please give us feedback.

Note: This release also contains all bug fixes available in 1.0.7.

Features

  • $animator:

    • provide support for custom animation events (c53d4c94)
    • allow to globally disable and enable animations (5476cb6e)
  • $http:

    • add support for aborting via timeout promises (9f4f5937, #1159)
    • add a default content type header for PATCH requests (f9b897de)
    • add timeout support for JSONP requests (cda7b711)
  • $parse: add support for ternary operators to parser (6798fec4)

  • $q: add $q.always() method (6605adf6)

  • $controller: support "Controller as" syntax (cd38cbf9, 400f9360)

  • $injector: add has method for querying (80341cb9, #2556)

  • Directives:

    • ngAnimate:
      • add support for CSS3 Animations with working delays and multiple durations (14757874)
      • cancel previous incomplete animations when new animations take place (4acc28a3)
    • ngSrcset: add new ngSrcset directive (d551d729, #2601)
    • ngIf: add directive to remove and recreate DOM elements (2f96fbd1)
    • select: match options by expression other than object identity (c32a859b)
    • ngInclude: $includeContentRequested event (af0eaa30)
  • Mobile:

    • ngClick: Add a CSS class while the element is held down via a tap (52a55ec6)
    • ngSwipe: Add ngSwipeRight/Left directives to ngMobile (5e0f876c)
  • docs:

    • Add FullText search to replace Google search in docs (3a49b7ee)
    • external links to github, plunkr and jsfiddle available for code examples (c8197b44)
    • add variable type hinting with colors (404c9a65)
    • support for HTML table generation from docs code (b3a62b2e)
  • scenario runner: adds mousedown and mouseup event triggers to scenario (629fb373)

    Bug Fixes

    • $animator: remove dependency on window.setTimeout (021bdf39)

    • $controller: allow dots in a controller name (de2cdb06)

    • $location:

      • prevent navigation when event isDefaultPrevented (2c69a673)
      • compare against actual instead of current URL (a348e90a)
      • prevent navigation if already on the URL (4bd7bedf)
      • fix URL interception in hash-bang mode (58ef3230, #1051)
      • correctly rewrite Html5 urls (77ff1085)
    • $resource:

      • null default param results in TypeError (cefbcd47)
      • collapse empty suffix parameters correctly (53061363)
    • $rootScope: ensure $watchCollection correctly handles arrayLike objects (6452707d)

    • date filter: correctly format dates with more than 3 sub-second digits (4f2e3606)

    • jqLite: pass a dummy event into triggerHandler (0401a7f5)

    • Directives:

      • ngAnimate:
        • eval ng-animate expression on each animation (fd21c750)
        • prevent animation on initial page load (570463a4)
        • skip animation on first render (1351ba26)
      • ngPattern: allow modifiers on inline ng-pattern (12b6deb1, #1437)
      • ngRepeat:
      • ngView: accidentally compiling leaving content (9956baed)
    • scenario runner: correct bootstrap issue on IE (ab755a25)

Breaking Changes

  • $animator/ngAnimate: due to 11f712bc, css transition classes changed from foo-setup/foo-start to foo/foo-active

    The CSS transition classes have changed suffixes. To migrate rename

      .foo-setup {...} to .foo {...}
      .foo-start {...} to .foo-active {...}
    

    or for type: enter, leave, move, show, hide

      .foo-type-setup {...} to .foo-type {...}
      .foo-type-start {...} to .foo-type-active {...}
    
  • $resource: due to 53061363, a / followed by a ., in the last segment of the URL template is now collapsed into a single . delimiter.

    For example: users/.json will become users.json. If your server relied upon this sequence then it will no longer work. In this case you can now escape the /. sequence with /\.

1.0.7 monochromatic-rainbow (2013-05-22)

Bug Fixes

  • $browser: should use first value for a cookie. (3952d35a, #2635)

  • $cookieStore: $cookieStore.get now parses blank string as blank string (cf4729fa)

  • $location: back-button should fire $locationChangeStart (dc9a5806, #2109)

  • $parse: Fix context access and double function call (7812ae75, #2496)

  • dateFilter: correctly format ISODates on Android<=2.1 (f046f6f7, #2277)

  • jqLite: correct implementation of mouseenter/mouseleave event (06f2b2a8, #2131)

  • angular.copy/angular.extend: do not copy $$hashKey in copy/extend functions. (6d0b325f, #1875)

  • i18n: escape all chars above \u007f in locale files (695c54c1, #2417)

  • Directives:

    • ngPluralize: handle the empty string as a valid override (67a4a25b, #2575)
    • select: ensure empty option is not lost in IE9 (4622af3f, #2150)
    • ngModel: use paste/cut events in IE to support context menu (363e4cbf, #1462)
    • ngClass: should remove classes when object is the same but property has changed (0ac969a5)
  • PhoneCat Tutorial: renamed Testacular to Karma (angular-phonecat)

1.1.4 quantum-manipulation (2013-04-03)

Note: 1.1.x releases are considered unstable. They pass all tests but we reserve the right to change new features/apis in between minor releases. Check them out and please give us feedback.

Note: This release also contains all bug fixes available in 1.0.6.

Features

  • $compile:

  • $q: $q.all() now accepts hash (e27bb6eb)

  • $resource: ability to override url in resource actions (60f1f099)

  • $route: add caseInsensitiveMatch option for url matching (5e18a15f)

  • http:

    • support request/response promise chaining (4ae46814)
    • set custom default cache in $http.defaults.cache (99f3b70b)
  • JQLite: ready() now supports document.readyState=='complete' (753fc9e5)

  • Scenario: autodisable animations when running e2e tests (fec4ef38)

  • Scope: add $watchCollection method for observing collections (5eb96855)

  • angular.bootstrap: support deferred bootstrap (mainly useful for tools like test runners and Batarang) (603fe0d1)

  • ngMobile: add ngMobile module with mobile-specific ngClick (707c65d5)

  • Directives:

    • ngKeypress: add ngKeypress directive for handling keypress event (f20646bc)
    • ngSwitch: Preserve the order of the elements not in the ng-switch (e88d6179, #1074)
    • ngAnimate: add support for animation (0b6f1ce5)
    • ngRepeat: add support for custom tracking of items (61f2767c)

Breaking Changes

  • $route: due to 6f71e809, in $routeChangeStart event, nextRoute.$route property is gone. Use the nextRoute object itself instead of nextRoute.$route.

  • ngRepeat: due to 61f2767c, it is now considered an error to have two identical items (identified by the new "track by" expression) in a collection that is fed into the repeater. This behavior was previously tolerated.

  • ngSwitch: due to e88d6179, elements not in the ng-switch were rendered after the ng-switch elements. Now they are rendered in-place.

    Templates with ngSwitch directives and nested non-ngSwitchWhen elements should be updated to preserve render order.

    For example: The following was previously rendered with <li>1</li> after <li>2</li>:

      <ul ng-switch="select">
        <li>1</li>
        <li ng-switch-when="option">2</li>
      </ul>
    

    To keep the old behaviour, use:

      <ul ng-switch="select">
        <li ng-switch-when="1">2</li>
        <li>1</li>
      </ul>
    

1.0.6 universal-irreversibility (2013-04-04)

Bug Fixes

  • $compile:
    • compile replace directives in external template (398691be, #1859)
    • whitelist file:// in url sanitization (7b236b29)
    • handle elements with no childNodes property (bec614fd)
  • $http: don't encode URL query substring "null" to "+" (86d191ed)
  • $httpBackend: prevent DOM err due to dereferencing .responseText (509ec745, #1922)
  • $location:
    • parse FirefoxOS packaged app urls (3a81dd8b, #2112)
    • correctly rewrite html5 url to hashbang url (9befe370)
  • $route: make nextRoute.$route private (6f71e809, #1907)
  • mocks: prevent NPE when module definition outside of it. (5c735eb4)
  • dateFilter: correct timezone date filter for 1/2 hour offsets (1c1cd4fd)

1.1.3 radioactive-gargle (2013-02-20)

Note: 1.1.x releases are considered unstable. They pass all tests but we reserve the right to change new features/apis in between minor releases. Check them out and please give us feedback.

Note: This release also contains all bug fixes available in 1.0.5.

Bug Fixes

  • $compile:
    • initialize interpolated attributes before directive linking (bb8448c0)
    • interpolate @ locals before the link function runs (2ed53087)
  • $http:
    • do not encode special characters @$:, in params (288b69a3)
  • $resource:
    • params should expand array values properly (2a212344)

Features

  • $http: allow overriding the XSRF header and cookie name (8155c3a2)
  • $parse: added constant and literal properties (1ed63858)
  • $resource: expose promise based api via $then and $resolved (dba6bc73)
  • $routeProvider: add support to catch-all parameters in routes (7eafbb98)
  • Scope:
    • expose transcluded and isolate scope info for batarang (649b8922)
    • only evaluate constant $watch expressions once (1d7a95df)
  • angular.noConflict: added api to restore previous angular namespace reference (12ba6cec)
  • Directives:
    • ngSwitch: support multiple matches on ngSwitchWhen and ngSwitchDefault (0af17204, #1074)
  • Filters:
    • date: add [.,]sss formatter for milliseconds (df744f3a)
    • filter: add comparison function to filter (ace54ff0)

Breaking Changes

  • $http: due to 288b69a3, $http now follows RFC3986 and does not encode special characters like $@,: in params. If your application needs to encode these characters, encode them manually, before sending the request.
  • $resource: due to 2a212344, if the server relied on the buggy behavior of serializing arrays as http query arguments then either the backend should be fixed or a simple serialization of the array should be done on the client before calling the resource service.

1.0.5 flatulent-propulsion (2013-02-20)

Bug Fixes

  • $compile:
    • sanitize values bound to a[href] (9532234b)
    • rename $compileNote to compileNode (92ca7efa, #1941)
    • should not leak memory when there are top level empty text nodes (791804bd)
    • allow startingTag method to handle text / comment nodes (755beb2b)
  • $cookies: set cookies on Safari&IE when base[href] is undefined (70909245, #1190)
  • $http:
    • patch for Firefox bug w/ CORS and response headers (e19b04c9, #1468)
  • $resource:
    • update RegExp to allow urlParams with out leading slash (b7e1fb05)
  • Directives:
    • a: workaround IE bug affecting mailto urls (37e8b122, #1949)
    • ngClass: keep track of old ngClass value manually (5f5d4fea, #1637)
    • ngSwitch: make ngSwitch compatible with controller backwards-compatibility module (9b7c1d0f)
  • Filters:
    • date: invert timezone sign and always display sign (b001c8ec, #1261)
    • number: fix formatting when "0" passed as fractionSize (f5835963)
  • scenario runner: include error messages in XML output (d46fe3c2)
  • Misc:
    • don't use instanceof to detect arrays (3c2aee01, #1966)
    • angular.forEach should correctly iterate over objects with length prop (ec54712f, #1840)

1.1.2 tofu-animation (2013-01-22)

Note: 1.1.x releases are considered unstable. They pass all tests but we reserve the right to change new features/apis in between minor releases. Check them out and please give us feedback.

Note: This release also contains all bug fixes available in 1.0.4.

Features

  • $compile: support modifying the DOM structure in postlink fn (cdf6fb19)
  • $log: add $log.debug() (9e991ddb, #1592)
  • $parse: allow strict equality in angular expressions (a179a9a9, #908)
  • $resource:
    • allow dynamic default parameters (cc42c99b)
    • support all $http.config actions (af89daf4)
  • $route: allow using functions as template params in 'when' (faf02f0c)
  • $timeout-mock: add verifyNoPendingTasks method (f0c6ebc0, #1245)
  • directive:
  • limitTo filter: limitTo filter accepts strings (9e96d983, #653)
  • scenario:
    • add mouseover method to the ngScenario dsl (2f437e89)
    • fail when an option to select does not exist (15183f3e)

Breaking Changes

  • date: due to cc821502, string input without timezone info is now parsed as local time/date

1.0.4 bewildering-hair (2013-01-22)

Bug Fixes

  • $compile:
  • $injector:
  • $resource:
    • HTTP method should be case-insensitive (8991680d, #1403)
    • correct leading slash removal in resource URLs (b2f46251)
  • $route:
    • support route params not separated with slashes. (c6392616)
    • correctly extract $routeParams from urls (30a9da5d)
  • Scope: ensure that a scope is destroyed only once (d6da505f, #1627)
  • angular.equals:
  • date filter: parse string input as local time unless TZ is specified (cc821502, #847)
  • jqLite:
    • children() should only return elements (febb4c1c)
    • make next() ignore non-element nodes (76a6047a)
  • scenario: don't trigger input events on IE9 (8b9e6c35)
  • Directives:
    • ngRepeat: correctly apply $last if repeating over object (7e746015, #1789)
    • ngSwitch: don't leak when destroyed while not attached (a26234f7, #1621)
    • select: support optgroup + select[multiple] combo (26adeb11, #1553)

Features

  • $compile: support modifying the DOM structure in postlink fn (cdf6fb19)

1.1.1 pathological-kerning (2012-11-26)

Note: 1.1.x releases are considered unstable. They pass all tests but we reserve the right to change new features/apis in between minor releases. Check them out and please give us feedback.

Note: This release also contains all bug fixes available in 1.0.3.

Features

  • $cacheFactory: cache.put now returns the added value (168db339)
  • $http: Allow setting withCredentials on defaults (209b67df, #1095)
  • $resource: support custom headers per action (fbdab513, #736)
  • $sanitize: support telephone links (04450c48)
  • FormController: add ability to reset a form to pristine state (733a97ad, #856)
  • jqLite: add triggerHandler() (650fd933)
  • linky filter: allow optional 'target' argument (610927d7, #1443)
  • angular-mocks: support mocha in angular mocks (92558fe4)
  • ngModel: support ngTrim attribute on input (d519953a)
  • scenario: add dblclick method to the ngScenario dsl (8cb9c99e)
  • CSP: update to the latest CSP api (af7e0bd0, #1577)

Bug Fixes

  • $http:
    • config.param should expand array values properly (see breaking change notes below) (79af2bad, #1363)
    • prevent CORS preflight checks by removing X-Requested-With from header defaults (see breaking change notes below) (3a75b112, #1004)
    • prevent CORS preflight checks by not setting X-XSFR-TOKEN header for cross domain requests (see breaking change notes below) (fce100a4, #1096)

Refactorings

  • $evalAsync: have only one global async queue (331cd5a8)

Breaking Changes

  • Due to fix for #1363 it's possible but unlikely that $http will start generating different URLs for requests. This affects only cases when a request is made with a parameter, value of which is an array. If the server relied on the buggy behavior then either the backend should be fixed or a simple serialization of the array should be done on the client before calling the $http service.

  • Due to fix for #1004 the X-Requested-With header is not set by $http service any more. If anyone actually uses this header it's quite easy to add it back via:

      myAppModule.config(['$httpProvider', function($httpProvider) {
          $httpProvider.defaults.headers.common["X-Requested-With"] = 'XMLHttpRequest';
      }]);
    
  • Due to fix for #1096 X-XSFR-TOKEN header is no longer send for cross domain requests. This shouldn't affect any known production service. If we are wrong, please let us know ;-)

1.0.3 bouncy-thunder (2012-11-26)

Bug Fixes

  • $cacheFactory: return undefined when removing non-existent entry (55d15806, #1497)
  • $compile:
    • prevent double attr interpolation w/ templateUrl (fc115bfd, #1166)
    • reference local in isolate scope (8db47ca7, #1272)
    • don't look for class directives in empty string (54b3875b)
    • compilation should not recurse into empty nodes (008a782b)
  • $injector: more conservative annotation parsing
  • $location: reset $location.$$replace with every watch call (a32bc40f, #1111) (d9eff86e)
  • $parser: string concatination with undefined model (42c38b29, #988)
  • $resource:
    • prevent default params to be shared between actions (94e1c039)
    • allow falsy values in URL parameters (4909d1d3)
    • ignore undefined parameters (10e1c759, #875, #782)
  • Scope:
  • $route: support inline annotation on .resolve (b0a05a75)
  • FormController: propagate dirty state to parent forms (04329151)
  • a: prevent Opera from incorrectly navigating on link click (c81d8176)
  • jqLite:
    • support append on document fragment (96ed9ff5)
    • fire $destroy event via triggerHandler (this makes AngularJS compatible with jQuery 1.8.x) (b9a9f91f, #1512)
  • Filters
    • currency: Handle not-quite-zero values (bca1604c, #1469)
    • date:
      • make timezone optional (9473780e)
      • support sub-second precision on dateFilter (f299fd51)
  • Directives
    • ngClass: works with class interpolation (cebd015f, #1016)
    • ngClassOdd/ngClassEven: support shrinking/reordering in repeaters (d859dcec, 6c67719d, #1076)
    • ngModel: sync ngModel state with scope state (e6d9bea4, #933)
    • ngRepeat: now works better with primitive types (e6d9bea4, #933)
    • ngSrc: don't set src if value is empty string (b6e4a711)
    • select: select option with a label of 0 is not shown (b3cae4f4, #1401)
  • scenario:
    • emit RunnerBegin event (95276a7e)
    • NPE when no angular loaded in test page (84c13d96)
    • support data-ng and x-ng based attributes (249a1d84, #1020)

Docs

  • add plunkr support (7c67b2fb)
  • various small documentation fixes and improvements

Refactorings

  • name all anonymous watch functions in Angular (ca30fce2, #1119)

1.1.0 increase-gravatas (2012-08-31)

Note: 1.1.x releases unlike 1.0.x are considered unstable. More info

This release also contains all bug fixes available in 1.0.2.

Features

  • $http: support custom reponseType (e0a54f6b, #1013)
  • $interpolate:
    • provide contextual error messages (d804bbcd)
    • expose start/end symbols in run phase (58f121a5)
  • $sniffer: auto detect CSP mode (currently requires Chrome on dev channel) (167aa0c2)

1.0.2 debilitating-awesomeness (2012-08-31)

Bug Fixes

  • $compile: denormalize directive templates (dfe99836)
  • $interpolate: $interpolateProvider.endSymbol() returns startSymbol (20348717)
  • jqLite: better support for xhtml (d3fa7a2e, #1301)
  • mocks: free up memory after every spec (1a8642aa)
  • e2e test runner: Adding meta tag to avoid cache issues (5318588d)
  • Directives:
    • form: prevent page reload when form destroyed (054d40f3, #1238)
    • ngList: remove data bound flicker (fa62ea81)
    • ngPluralize: fixes ng-pluralize when using non-standard start/end symbols (e85774f7, #1134)
    • option: support option elements in datalist (9767f7bd, #1165)

Docs

1.0.1 thorium-shielding (2012-06-25)

Bug Fixes

  • $location: don't throw exception while url rewriting if element was removed (3da4194f, #1058)
  • $location: prevent ie from getting into redirect loop (ffb27013, #1075, #1079, #1085)

1.0.0 temporal-domination (2012-06-13)

Bug Fixes

  • $location:
    • correctly parse link urls in hashbang mode with a prefix (0f44964e, #1037)
    • fix link click interception in hash-bang mode (6593a3e0, #1051)

1.0.0rc12 regression-extermination (2012-06-12)

Bug Fixes

  • $location: correctly parse link urls in hashbang mode (74fa65ec, #1037)

Cleanup

  • $defer: remove deprecated $defer service (9af7a919)
  • docs: simplify api urls (f16150d5)

1.0.0rc11 promise-resolution (2012-06-10)

Features

  • $route:
    • allow defining route async dependencies as promises and defer route change until all promises are resolved (885fb0dd)
    • rename template -> tempalteUrl and add support for inline templates (0a6e464a)
  • $compile: simplify isolate scope bindings and introduce true two-way data-binding between parent scope and isolate scope (c3a41ff9)
  • $injector: provide API for retrieving function annotations (4361efb0)
  • $location: add $locatonChange[start|success] event - since events are cancelable, it's now possible to cancel route and location changes. (92a2e180)
  • $rootElement: expose application root element as $rootElement service (85632cb4)

Bug Fixes

  • $compile: correctly merge class attr for replace directives (contributed by Max Martinsson, fb99b539, #1006)
  • $http: add utf-8 to default Content-Type header (post/put) (10f80d7d)
  • $timeout: allow calling $timeout.cancel() with undefined (contributed by Ali Mills, 1904596e)
  • jqLite: don't eat event exceptions (416a7830)

Breaking Changes

  • $beforeRouteChange and $afterRouteChange events were renamed to $routeChangeStart and $routeChangeSuccess

    This was done to make the naming consistent with $location events and also get events to categorize and order nicely just by alphabetical sorting.

    (7c242821)

  • template option in $route definition was renamed to templateUrl

    The template options in $route definition now represents the actual template string. To provide the template url use templateUrl option instead. This was done to unify the directive and $route definitions.

    To migrate just rename template to templateUrl. (0a6e464a)

  • isolate scope bindings definition has changed

    To migrate the code follow the example below:

    Before:

      scope: {
        myAttr: 'attribute',
        myBind: 'bind',
        myExpression: 'expression',
        myEval: 'evaluate',
        myAccessor: 'accessor'
      }
    

    After:

      scope: {
        myAttr: '@',
        myBind: '@',
        myExpression: '&',
        // myEval - usually not useful, but in cases where the expression is assignable, you can use '='
        myAccessor: '=' // in directive's template change myAccessor() to myAccessor
      }
    
  • the inject option for the directive controller injection was removed

    The removed inject wasn't generally useful for directives so there should be no code using it. (c3a41ff9)

1.0.0rc10 tesseract-giftwrapping (2012-05-23)

Features

  • $timeout: add $timeout service that supersedes $defer (4511d39c, #704, #532)
  • scope: add event.preventDefault() and event.defaultPrevented (84542d24)

Bug Fixes

  • ngRepeat: expose $first, $middle and $last instead of $position (1d388676, #912)
  • jqLite: use the same expando store structure as jQuery (acf095d1)
  • $rootScope: infinite digest exception does not clear $$phase (5989a1ed, #979)

Breaking Changes

  • ngRepeat - $position is not exposed in repeater scopes any more

    To update, search for /\$position/ and replace it with one of $first, $middle or $last. (1d388676)

  • scope event's cancel method was renamed to stopPropagation

    The name was corrected in order to align better with DOM terminology. To update, search for /\.\s*cancel\s*(/ and replace it with .stopPropagation( or .preventDefault( (or both) depending on what you actually need. (91db9920)

Deprecation Warnings

  • $defer service has been deprecated in favor of $timeout service

    The $defer service will be removed before 1.0 final, so please migrate your code. (4511d39c)

1.0.0rc9 eggplant-teleportation (2012-05-14)

Bug Fixes

  • $location:
    • single quote in url causes infinite digest in FF (679cb8a7, #920)
    • support urls with any protocol (c1533ef5)
    • don't use buggy history.pushState api on Android < 4 (7b739c97, #904)
    • work around Opera's base href issue (b99f65f6, #938)
  • docs app: get docs app to work on IE8 (aa025348)

1.0.0rc8 blooming-touch (2012-05-06)

Features

  • jqLite: support data() getter and data(obj) setter (ee579a07)

Bug Fixes

  • $compile:
    • have $observe return registration function (7f0eb151)
    • ignore ws when checking if template has single root (9c0418cf, #910)
    • fix replaceWith (b431ee38)
    • attach scope to the directive element when templateUrl and replace=true (705f4bbf)
    • prevent duplicate directive controller instantiation (843f762c, #876)
  • $parse: support methods on falsy primitive types (499a76a0)
  • ngModel: use keydown/change events on IE9 instead of input (49dfdf8f, #879)
  • ngSrc,ngHref: binding should set element prop as well as attr (b24cc63b, #935)
  • scenario: make browser().location() working if ng-app on other than (5bcb749a)
  • select: don't interfere with selection if not databound (3bd3cc57, #926)

Docs

1.0.0rc7 rc-generation (2012-04-30)

Features

Bug Fixes

  • jqlite:
    • correctly reset event properties in IE8 (a18926f9)
    • mouseenter on FF no longer throws exceptions (43d15f83)

Docs

v1.0.0rc6 runny-nose (2012-04-20)

Bug Fixes

  • select: properly handle empty & unknown options without ngOptions (904b69c7)
  • compiler: reading comment throws error in ie (46bb08a9)
  • document: accidental clobbering of document.getAttribute (eafe15f5, #877)
  • script: Incorrectly reading script text on ie (94dd6857)

Features

1.0.0rc5 reality-distortion (2012-04-12)

Bug Fixes

  • $location: properly rewrite urls in html5 mode with base url set + don't rewrite links to different base paths (6d7e7fde, 0a5050eb)
  • e2eRunner: $browser.location should delegate to apps $location (df72852f)
  • input.radio: support 2-way binding in a repeater (93d62860, #869)
  • ngBindHtml: clear contents when model is falsy (10daefc6, #864)
  • lots of doc fixes

Features

  • $http: expose the defaults config as $http.defaults (dceafd32)
  • docs: steps 0-4 of the Tutorial have been updated and improved

Breaking Changes

  • ng-ext-link directive was removed because it's unnecessary (6d7e7fde)

    apps that relied on ng-ext-link should simply replace it with target="_self"

  • $browser.addCss was removed - it was never meant to be a public api (13d5528a)

    apps the depend on this functionality should write a simple utility function specific to the app (see this diff for hints).

  • $browser.addJs method was removed - it was never meant to be a public api (fbaa1968)

    apps that depended on this functionality should either use many of the existing script loaders or create a simple helper method specific to the app.

  • $sanitize service, ngBindHtml directive and linky filter were moved to the ngSanitize module (5bcd7198)

    apps that depend on any of these will need to load angular-sanitize.js and include ngSanitize in their dependency list: var myApp = angular.module('myApp', ['ngSanitize']);

1.0.0rc4 insomnia-induction (2012-04-05)

Bug Fixes

  • $compile: relax the restriction that directives can not add siblings (7e86eacf)
  • $location: search setter should not double-encode the value (59fa40ec, #751)
  • $q: $q.reject should forward callbacks if missing (c0b78478, #845)
  • build: move 'use strict'; flag into the angular closure (637817e3)
  • Directives:
    • ngModel: update model on each key stroke (revert ngModelInstant) (06d09550)
    • booleanAttrs: always convert the model to boolean before setting the element property (dcb8e076)
    • form: preperly clean up when invalid widget is removed (21b77ad5)
    • ngHref: copy even if no binding (2f5dba48)
    • ngInclude: fire $includeContentLoaded on proper (child) scope (199ac269)

Features

  • $http: add withCredentials config option (86182a94)
  • $route: allow chaining of whens and otherwise (15ecc6f3)
  • ngInclude: allow ngInclude as css class (428f2b56)

Docs

  • reintroduced the tutorial docs - currently only steps 0-3 are up to date and the code is not split up into step specific commits yet. See this branch instead.
  • various other doc fixes

Breaking Changes

We removed two useless features:

  • $routeProvider.when used to return the route definition object but now it returns self (15ecc6f3)
  • ngInclude does not have scope attribute anymore (5f70d615)
  • ngModelInstant directive is no more and ngModel behaves just as ngModelInstant used to. This doesn't really break anything, just remember to remove all ngModelInstant references from your template as they serve no purpose now. (06d09550)

1.0.0rc3 barefoot-telepathy (2012-03-29)

Bug Fixes

  • $compile:
    • properly clone attr.$observers in ng-repeat (f2106692)
    • create new (isolate) scopes for directives on root elements (5390fb37, #817)
  • angular.forEach: should ignore prototypically inherited properties (8d7e6948, #813)
  • initialization: use jQuery#ready for initialization if available (cb2ad9ab, #818)
  • $q: resolve all of nothing to nothing (ac75079e)

Features

  • $compile: do not interpolate boolean attribute directives, rather evaluate them (a08cbc02)
  • $controller: support controller registration via $controllerProvider (d54dfecb)
  • $http:
    • make the transformRequest and transformResponse default to an array (a8a750ab)
    • added params parameter (73c85930)
  • TzDate: add support for toISOString method (da9f4dfc)
  • jqLite: make injector() and scope() work with the document object (5fdab52d)
  • ngValue: directive that allows radio inputs to have non string values (09e175f0, #816)

Breaking Changes

  • $resource, $cookies and $cookieStore services are now distributed as separate modules, see angular-resource.js and angular-cookies.js. (798bca62, 7b22d59b)
  • angular.fromJson doesn't deserialize date strings into date objects. (ac4318a2)
  • angular.toJson always use native JSON.parse and JSON.stringify - this might break code that consumes the output in whitespace-sensitive way (35125d25)
  • IE7 and older have are now required to polyfill the JSON global object (87f5c6e5)
  • boolean attr directives (ng-disabled, ng-required, etc) are evaluated rather than interpolated (a08cbc02)
  • ng-bind-attr directive removed (55027132)
  • any app that depends on $sniffer service should use Modernizr instead (aaedefb9)

1.0.0rc2 silence-absorption (2012-03-20)

Features

  • $route: when matching consider trailing slash as optional (a4fe51da)
  • jqLite: add .controller() method (6c5a05ad)
  • scope.$eval: allow passing locals to the expression (192ff61f)
  • input[type=radio]: allow the value attribute to be interpolated (ade6c452)

Bug Fixes

  • $http: don't send Content-Type header when no data (1a5bebd9, #749)
  • $resource: support escaping of ':' in resource url (6d6f8753)
  • $compile:
    • don't touch static element attributes (9cb2195e)
    • merge interpolated css class when replacing an element (f49eaf8b)
    • allow transclusion of root elements (9918b748)
  • $log: avoid console.log.apply calls in IE (15213ec2, #805)
  • json: added support for iso8061 timezone (5ac14f63)
  • e2e runner: fix typo that caused errors on IE8 (ee5a5352, #806)
  • directives:
    • select: multiselect failes to update view on selection insert (6ecac8e7)
    • ngForm: alias name||ngForm (823adb23)
    • ngView: publish the controller (21e74c2d)
    • ngRepeat: correct variable reference in error message (935c1018)
    • various doc fixes (some contributed by Daniel Zen)

1.0.0rc1 moiré-vision (2012-03-13)

$compile rewrite

The compiler was completely rewritten from scratch using ideas from this design document. Please check out the $compile and $compileProvider.directive docs. The biggest improvements and changes are listed below.

  • the compiler now transparently supports several directive syntaxes. For example while before there was just one way to use ng:include directive: <ng:include src="someSrc"></ng:include>. The new compiler treats all of the following as equivalent:

    • <ng:include src="someSrc"></ng:include>
    • <ng-include src="someSrc"></ng-include>
    • <x-ng-include src="someSrc"></x-ng-include>
    • <div ng:include src="someSrc"></div>
    • <div ng-include src="someSrc"></div>
    • <div data-ng-include src="someSrc"></div>
    • <div ng:include="someSrc"></div>
    • <div ng-include="someSrc"></div>
    • <div data-ng-include="someSrc"></div>
    • <div class="ng-include: someSrc"></div>

    This will give template creators great flexibility to consider the tradeoffs between html code validity and code conciseness and pick the syntax that works the best for them.

  • we are switching all of our code/docs/examples to use ng-foo directive name style instead of ng:foo. The new compiler doesn't distinguish between these and other name styles (all of them are equally supported), the main difference is that ng-foo is easier to select with css selectors. Check out the Internet Explorer Compatibility doc to learn about various IE-related requirements for different directive naming styles.

  • angular.directive, angular.widget, angular.attrWidget were merged into a single concept: a directive which is registered via myModule.directive or $compileProvider.directive. You can control execution priority of multiple directives on the same element (previously the main difference between a attribute widget and a directive) via a directive priority setting.

  • previously the linking functions of directives were called top to bottom following the DOM tree, to enable a linking fn to work child DOM nodes that were already processed by child linking fns the order was changed as follows: compile functions run top to bottom following the DOM tree, but linking functions run bottom-up following the DOM tree. In some rare cases it is desirable for linking fns to be called top to bottom and for these it is possible to register "prelinking" functions (check out the docs for the return value of the compile function).

  • angular.markup and angular.attrMarkup were replaced with interpolation via $interpolate service.

    • In the past {{foo}} markup was getting translated to <span ng-bind="foo"></span> during the early stage of template compilation. Addition of this extra node was in some cases undesirable and caused problems. The new compiler with the help of the $interpolate service removes the need for these artificial nodes.

    • As a side-effect of not using artificial nodes available for all bindings, the html filter which used to innerHTML (sanitized) html into the artificial node was converted into a directive. So instead of {{ someRawHtml | html }} use <div ng-bind-html="someRawHtml"></div> and instead of {{ someRawHtml | html:"unsafe" }} use <div ng-bind-html-unsafe="someRawHtml"></div>. Please check out the ng-bind-html and ng-bind-html-unsafe directive docs.

    • Custom markup has been used by developers only to switch from {{ }} markup to (( )) or something similar in order to avoid conflicts with server-side templating libraries. We made it easier to do this kind of customization by making the start and end symbol of the interpolation configurable via $interpolateProvider.

  • template loader loads template fragments from script elements and populates the $templateCache with them. Templates loaded in this way can be then used with ng-include, ng-view as well as directive templates (see the templateUrl property of the directive config object).

Forms / input controls / two-way data binding

The implementation of forms and input bindings was modified to address issues around composability, ease of adding custom validation and formatting. Please check out the forms dev guide article to learn about forms, form control bindings and input validation. The biggest changes are listed below.

  • any directive can add formatter/parser (validators, convertors) to an input type. This allows better composability of input types with custom validators and formatters. So instead of creating new custom input type for everything, it's now possible to take existing input type and add an additional formatter and/or validator to it via a custom directive.

  • inputs propagates changes only on the blur event by default (use new ng-model-instant directive if you want to propagate changes on each keystroke).

  • no more custom input types, use directives to customize existing types.

  • removed $formFactory.

  • removed parallel scope hierarchy (forms, widgets).

  • removed list input type (use ng-list directive instead).

  • removed integer input type.

Controller-scope separation

Controllers are now standalone objects, created using the "new" operator, and not mixed with scope object anymore. This addresses many issues including: #321 and #425.

The design doc explains the reasoning for this major change and how it solves many issues.

Before:

function MyCtrl() {
  var self = this;

  this.model = 'some model of any type';

  this.fnUsedFromTemplate = function() {
    someApiThatTakesCallback(function callbackFn() {
      self.model = 'updatedModel';
    });
  };
}

After:

function MyCtrl($scope) {
  $scope.model = 'some model of any type';

  $scope.fnUsedFromTemplate = function() {
    someApiThatTakesCallback(function() {
      $scope.model = 'updatedModel';
    });
  }
}

Temporary backwards compatibility: Load the following module in your app to recreate the previous behavior and migrate your controllers one at a time: https://gist.github.com/1649788

$route service changes

  • As advertised in the past we moved the $route configuration from the run phase of the application to the config phase. This means that instead of defining routes via $route.when/$route.otherwise you should use $routeProvider.when/$routeProvider.otherwise instead.

  • route scope is now being created by the ng-view rather than by $route, this resolved many issues we've previously faced. For more info, read the commit message.

  • removed $route.parent() - it's unnecessary because the scope is properly created in the scope hierarchy by ng-view.

  • new $viewContentLoaded and $includeContentLoaded events which directives can use to be notified when a template content is (re)loaded.

  • ng-view now has onload attribute which behaves similarly to the one on ng-include.

Directives

  • ng-model binding on select[multiple] element should support binding to an array (commit)
  • event object is now accessible as $event in ng-click and other directives (commit, issue #259
  • ng-class directive now support map of classnames and conditions e.g. <div ng-class="{'hide': !visible, 'warning': isAlert()}"... (contributed by Kai Groner) (commit)

Scope changes

  • scope.$emit/$broadcast return the event object, add cancelled property (commit)

  • scope.$new() takes one argument - a boolean indicating if the newly-created child scope should be isolated (not prototypically inheriting from the current scope). Previously the first argument was reference to the controller constructor, but because of the scope/controller separation the controllers should be instantiated via the $controller service. (commit)

  • fn signature change for change listener functions registered via scope.$watch - this means that the scope object can be listed in the arguments list only if its needed and skipped otherwise. (commit)

    • before: scope.$watch('someModel', function(scope, newVal, oldVal) {})
    • after: scope.$watch('someModel', function(newVal, oldVal, scope) {})
  • scope.$watch now compares object by reference and only if extra boolean flag is passed comparison by equality is used. This was done to avoid unintended performance issues. (commit)

    • before: scope.$watch('expression', function(scope, newVal, oldVal) {})
    • after: scope.$watch('expression', function(newVal, oldVal, scope) {}, true)
  • scope.$destroy doesn't cause the $destroy event to be emitted any more - this event was primarily used by the old forms implementation and is not needed any more. We are considering broadcasting this event in the future, which could then be used by directives and child scopes to be notified of their scope destruction.

New directives:

$injector / modules

  • $injector.instantiate should return the object returned from constructor if one was returned (commit)
  • $injector.instantiate should support array annotations for Type argument (e.g. instantiate(['dep1', 'dep2', Type])) (commit)
  • quickly fail if circular dependencies are detected during instantiation (commit)
  • added $provide.constant to enable registration of constants that are available in both the config and run phase (commit)
  • $provide.service was renamed to $provide.provider (commit)
  • $provide.service takes a constructor fn and creates a service instance by using $injector.instantiate

New services:

jqLite (angular.element)

  • added contents() (commit)
  • added wrap() (commit)
  • fix memory leaking in IE8 (remove monkey patched methods on Event) (commit, commit)

Docs

Small bug fixes

  • fix incorrect comparison of dates by angular.equals (commit)
  • scope.$watch support watching functions (commit, commit)
  • $http should not json-serialize File objects, instead just send them raw (commit)
  • $compile should ignore content of style and script elements (commit, commit)
  • TzDate#getDay() should take into account the timezone offset (contributed by Stephane Bisson) (commit)

Small features

  • $parse service now supports local vars in expressions (commit)

0.10.6 bubblewrap-cape (2012-01-17)

Features:

  • Dependency injection subsystem rewrite. This is a huge change to the Angular core that was necessary for many reasons. Please read the full design doc to understand the changes and reasoning behind them.
  • Added angular.bootstrap for manual bootstrapping of the app. Also see Initializing Angular App doc.
  • Helper functions inject and module that make testing with DI and jasmine a lot easier.
  • jqLite and jQuery were extended with helper method injector() that simplifies the access to the application injector during debugging.
  • Rewrite of $xhr service and its dependencies, which was replaced with $http service. The $browser.xhr and its mock were replaced by $httpBackend and its unit testing and end-to-end testing mocks. The $resource service api and functionality was preserved, with the exception of caching, which is not happening automatically as it used it in the past (verifyCache has no effect).
  • $q - Q-like deferred/promise implementation (commit)
  • Transparent data-binding to promises in templates. Example (commit)
  • New $anchorScroll service that watches url hash and navigates to the html anchor even if the content was loaded via ng:view (for ng:include you have to opt into this behavior using autoscroll attribute)
  • New LRU cache factory - $cacheFactory service
  • jQuery 1.7 compatibility

Bug Fixes:

  • Directive names are now case insensitive (commit)
  • $location#url setter fix (Issue #648)
  • ng:include - prevent race conditions by ignoring stale http callbacks (commit)
  • ng:repeat - support repeating over array with null (commit)
  • angular.copy - throw Error if source and destination are identical (commit)
  • Forms should not prevent POST submission if the action attribute is present (commit)

Breaking Changes:

  • App bootstrapping works differently (see angular.bootstrap and ng:app and bootstrapping)
  • scope.$service is no more (because injector creates scope and not the other way around), if you really can't get services injected and need to fetch them manually then, get hold of $injector service and call $injector.get('serviceId')
  • angular.service style service registration was replaced with module system, please see angular.module api and DI documentation for more info.
  • the $xhr service was replaced with $http with promise based apis.
  • unit-testing $httpBackend's expect method (the replacement for $browser.xhr.expect) is stricter - the order of requests matters and a single request expectation can handle only a single request.
  • compiler
    • compiler is a service, so use $compile instead of angular.compile to compile templates
    • $compile (nee angular.compile) returns the linking function which takes one mandatory argument - the scope. previously this argument was optional and if missing, the compiler would create a new root scope, this was a source of bugs and was removed
  • filters
    • filters need to be registered either via moduleName.filter or $filterProvider.filter
    • filters don't have access to the dom element
    • currency filter doesn't make negative values red
    • json filter doesn't print out stuff in monospace
  • type augmentation via angular.Array, and angular.Object is gone. As a replacement use filters (filter, limitTo, orderBy), ES5 apis (e.g. Array#indexOf), or create custom filters (e.g. as a replacement for $count and $sum).
  • $browser.defer.flush now throws an exception when queue is empty (commit)
  • scope.$apply and scope.$digest throws an exception if called while $apply or $digest is already in progress (this is a programming error, you should never need to do this) (commit)

0.10.5 steel-fist (11-11-08)

Features:

Bug Fixes:

  • ng:view: ignore stale xhr callbacks - fixes issues caused by race-conditions which occurred when user navigated to a new route before the current route finished loading (issue #619)
  • ng:form should always be a block level (css) element (commit)
  • Fixes for e2e test runner's $location dsl (commit)
  • ng:repeat when iterating over arrays ignore non-array properties + when iterating over objects sort keys alphabetically (commit)

Docs:

  • experimental disqus.com integration for all docs-next.angularjs.org pages (commit, contributed by Dan Doyon)
  • e2e test runner docs were moved to the dev guide

0.10.4 human-torch (2011-10-22)

Features:

  • New validation options for input widgets: ng:minlength and ng:maxlength (commit) (contributed by Konstantin Stepanov)
  • HTML sanitizer was updated to recognize all safe HTML5 elements (Issue #89)
  • ng:options' blank option is now compiled and data-bound as any other template (Issue #562) (contributed by tehek)
  • $defer service now exposes cancel method for task cancellation (commit)

Bug Fixes:

  • ng:options should select correct element when '?'-option (invalid value) was previously selected (Issue #599) (contributed by Tehek)
  • Fix data-binding of radio button's value property (Issue #316)
  • Input with type password should no be turned into a readable text field (commit) (contributed by Konstantin Stepanov)
  • ng:repeat should ignore object properties starting with $ (commit)
  • Correctly parse out inlined regexp from the input field's ng:pattern attribute. (commit)
  • $location service in html5 mode should correctly rewrite links that contain nested elements (commit)

Breaking Changes:

  • the date filter now uses 'mediumDate' format if none is specified. This was done to deal with browser inconsistencies (each browser used to use different format) (Issue #605, commit, commit)
  • calling the linker function returned by angular.compile doesn't automatically run $digest on the linked scope any more. This behavior was briefly introduced in 0.10.3 but was causing issues and inefficiencies in production apps so we reverted it. See: commit

0.10.3 shattering-heartbeat (2011-10-13)

Features:

Bug Fixes:

  • The select widget with ng:options directive now correctly displays selected option (regression from 0.10.2).
  • Fix for jqLite's removeClass, which under certain circumstances could clobber class names. (commit)
  • Other small fixes and documentation improvements.

Breaking Changes:

  • Due to changes in how forms and validation works the following were replaced with new apis:
    • angular.formatter - use angular.inputType or form's $createWidget
    • angular.validator - use angular.inputType or form's $createWidget
    • changes to <input> and <select> elements
      • ng:model directive is now required for data-binding to kick in
      • the name attribute is now optional and is used only as an alias when accessing the input widget via the form object.
      • view can't affect the model without a user interaction, so the value attribute of the <input> element and selected attribute of the <option> element if specified in the template is ignored.
  • Removed decoration of DOM elements when:
    • an exception occurs - when an exception happens, it will be passed to the $exceptionHandler service, which can decide what to do with it.
    • an input widget contains invalid input - in this case the forms validation apis can be used to display a customized error message.
  • The $hover service was removed (it was needed only for the DOM decoration described above).

0.10.2 sneaky-seagull (2011-10-08)

Features:

  • jQuery 1.6.4 support (Issue #556)
  • jqLite improvements:
    • Added support for prop method (commit)
    • Added support for unbind method (commit)

Bug Fixes:

  • Added support for short-circuiting of && and || operators in in angular expressions (Issue #433)
  • Fix for $limitTo to properly handle excessive limits (contributed by tehek) (Issue #571)
  • jqLite's css() method now converts dash-separated css property names to camelCase in order to support dash-separated properties on Firefox (Issue #569)
  • action defaults for $resources now take precedence over resource defaults (contributed by Marcello Nuccio) (commit)
  • Fixed escaping issues in $route matcher (commit)
  • Fixed two issues in $browser.defer.cancel mock (commit, commit)
  • Fix for ng:options, which under certain circumstances didn't select the right option element (commit)

Docs:

  • migrated the docs app to use $location's HTML5 mode (hashbang urls no more) (commit)

Breaking Changes

  • If Angular is being used with jQuery older than 1.6, some features might not work properly. Please upgrade to jQuery version 1.6.4.

Breaking Changes

  • ng:repeat no longer has ng:repeat-index property. This is because the elements now have affinity to the underlying collection, and moving items around in the collection would move ng:repeat-index property rendering it meaningless.

0.10.1 inexorable-juggernaut (2011-09-09)

Features

Bug Fixes

  • $xhr should not covert HTTP status 0 to 200 (commit)
  • fixed several doc examples that were broken on IE
  • ng:change should be called after the new val is set (Issue #547)
  • currency filter should return an empty string for non-numbers

Breaking Changes

  • $location related changes - for complete list of api changes see: Migrating from earlier AngularJS releases
    • $location api changes:

      • $location.href -> $location.absUrl()
      • $location.hash -> $location.url()
      • $location.hashPath -> $location.path()
      • $location.hashSearch -> $location.search()
      • $location.search -> no equivalent, use $window.location.search (this is so that we can work in hashBang and html5 mode at the same time, check out the docs)
      • $location.update() / $location.updateHash() -> use $location.url()
      • n/a -> $location.replace() - new api for replacing history record instead of creating a new one
    • $location semantic changes:

      • all url pieces are always in sync ($location.path(), $location.url(), $location.search(), ...) - this was previously true only if you used update* methods instead of direct assignment ($location.hashPath = 'foo')
      • we now use (window.history.pushState || onHashChange event || polling) for detecting url changes in the browser (we use the best one available).

0.10.0 chicken-hands (2011-09-02)

Features

Bug Fixes

Docs

  • many (but not all just yet) api docs were proof-read and improved

Breaking Changes:

  • many scope related changes:
    • $onEval is no more (use $watch with a fn as the only param if you really miss it)
    • $eval without params doesn't trigger model mutation observations (use $apply/$digest instead)
    • $digest propagates through the scope tree automatically (this is the desired behavior anyway)
    • $watch various API changes
      • scope is now the first argument passed into the $watch listener
      • this in the $watch listener is undefined instead of current scope
      • objects and arrays are watched and compared by equality and not just identity
      • the initial execution of the $watch listener now executes asynchronously with respect to the code registering it via $watch
      • exceptionHandler argument is no more
      • initRun argument is no more
    • angular.scope does not create child scopes by taking parent as the first argument - use $new instead
    • scope.$set and scope.$get were removed, use direct property assignment instead or $eval
  • $route.onChange was removed and replaced with $beforeRouteChange, $afterRouteChange and $routeUpdate events that can be used together with the new $routeParams service
  • angular.equals() now uses === instead of == when comparing primitives

0.9.19 canine-psychokinesis (2011-08-20)

Features

  • added error handling support for JSONP requests (see error callback param of the $xhr service) (commit)
  • exposed http response headers in the $xhr and $resource callbacks (commit contributed by Karl Seamon)
  • added reloadOnSearch $route param support to prevent unnecessary controller reloads and resulting flicker (commit)

Bug Fixes

  • fixed memory leak found in ng:options directive (commit)
  • make ng:class-even/odd compatible with ng:class (Issue #508)
  • fixed error handling for resources that didn't work in certain situations (commit contributed by Karl Seamon)

Docs

  • jsFiddle integration for all docs.angularjs.org examples (contributed by Dan Doyon).

Breaking Changes

  • removed jqLite show/hide support. See the commit message for details. Developers should use jquery or jqLite's css('display', 'none') and css('display', 'block'/'inline'/..) instead

0.9.18 jiggling-armfat (2011-07-29)

Features

  • ECMAScript 5 Strict Mode compliance
  • jqLite
    • added show(), hide() and eq() methods to jqlite (commit)
  • added $defer.cancel to support cancellation of tasks defered via the $defer service
  • date filter
    • added support for full, long, medium and short date-time format flags (commit)
    • added support for z flag, which stands for short string timezone identifier, e.g. PST
    • internal improvements to enable localization of date filter output
  • number filter
    • internal improvements to enable localization of number filter output
  • currency filter
    • support for custom currency symbols via an optional param
    • internal improvements to enable localization of number filter output
  • added angular.version for exposing the version of the loaded angular.js file
  • updated angular.js and angular.min.js file headers with angular version and shorter & updated license info
  • ng:options
    • support binding to expression (Issue #449)
    • support iterating over objects (Issue #448)
    • support ng:change (Issue #463)
    • support option groups (<optgroup>) (Issue #450)
  • $xhr and $resource support for per-request error callbacks (Issue #408) (contributed by Karl Seamon)

Bug Fixes

  • make injector compatible with Rhino (HtmlUnit) (contributed by M√•rten Dolk) commit
  • ie-compat.js fixes and improvements related to fetching this file on the fly on legacy browsers
  • jqLite
    • fix bind() when binding to more events separated by space commit
    • non-existing attributes should return undefined just like in jQuery commit
    • set event.target for IE<8 commit
  • improved implementation of ng:show and ng:hide directives by using jqLite/jQuery hide and show methods
  • ng:options
    • fix incorrect re-growing of options on datasource change (Issue #464)

Docs

  • added full offline support for docs (click on the link in the footer of docs.angularjs.org)
  • many content improvements and corrections across all docs (reference api, tutorial, dev guide)
  • many small design improvements

Other

  • doubled our e2e test suite by running all angular e2e tests with jqLite in addition to jQuery

Breaking changes

  • commit removed support for the MMMMM (long month name), use MMMM instead. This was done to align Angular with Unicode Technical Standard #35 used by Closure, as well as, future DOM apis currently being proposed to w3c.
  • $xhr.error's request argument has no callback property anymore, use success instead

0.9.17 vegetable-reanimation (2011-06-30)

New Features

Bug Fixes

  • Number filter would return incorrect value when fractional part had leading zeros.
  • Issue #338: Show error when template with with multiple DOM roots is being compiled.
  • Issue #399: return unsorted array if no predicate.
  • Fixed issues with incorrect value of $position in ng:repeat when collection size changes.
  • Fixed JSONP support in $xhr which didn't work without jquery since v0.9.13.

Documentation

  • various small fixes and improvements

Breaking changes

  • $service now has $service.invoke for method injection ($service(self, fn) no longer works)
  • injection name inference no longer supports method curry and linking functions. Both must be explicitly specified using $inject property.
  • Dynamic iteration (ng:repeat) on <option> elements is no longer supported. Use ng:options
  • Removal of index formatter (ng:format="index") since its only use was with repeated <options> (see above).
  • Calling $orderBy without a predicate now returns the original unsorted array, instead of ordering by natural order.

0.9.16 weather-control (2011-06-07)

Features

  • JsTD Scenario Adapter for running scenario tests with jstd (from command line and in multiple browsers)

Documentation

Bug Fixes

  • ng:href produces unclickable links on IE7 #352
  • IE 8 in compatibility mode breaks routing #353
  • IE translates a 204 response code to 1223 #357
  • Fixed unit test in IE7 #360
  • Fixed unit tests on FF4, Opera #364
  • Fixed opera date.toISOString issue #367

Breaking changes

  • html scenario runner requires ng:autotest script attribute to start tests automatically (example)

0.9.15 lethal-stutter (2011-04-11)

Features

  • IE9 support

Bug Fixes

  • reverted ng:view sync cache fix due to regression in the order of initialization of parent and child controllers. (commits 9bd2c396 and 3d388498)
  • $resource success callback is now executed whenever the http status code is <200,300>

Docs

  • fixed intentation code that caused some of the snippets on docs.angularjs.org to be mangled.
  • many small improvements of the api docs.

0.9.14 key-maker (2011-04-01)

Performance

Bug Fixes

  • Fixed $resource encoding of query params. (commits e1d122a4, 78a0f410)

House cleaning

  • code cleanup
  • better minification (min is now 2.5% or almost 1kb smaller)
  • minor documentation fixes
  • JsTestDriver 1.3.2 upgrade with fixed coverage support

0.9.13 curdling-stare (2011-03-13)

New Features

  • Added XSRF protection for the $xhr service. (commit c578f8c3)
  • Targeted auto-bootstrap – ng:autobind now takes an optional value which specifies an element id to be compiled instead of compiling the entire html document. (commit 9d5c5337)

Bug Fixes

  • Fixed IE7 regression which prevented angular from bootstrapping in this browser.
  • Cookies which contain unescaped '=' are now visible via the $cookies service. (commit 26bad2bf)
  • $xhr service now executes "success" callback for all 2xx responses, not just 200. (commit 5343deb3)
  • Always remove the script tag after successful JSONP request. (commit 0084cb5c)
  • Removal of all document.write statements to make angular compabile with async script loaders. (commit 3224862a)

Breaking changes

  • The post parameter of [$browser.xhr][$browser] is now non-optional. Since everyone should be using the $xhr service instead of $browser.xhr, this should not break anyone. If you do use $browser.xhr then just add null for the post value argument where post was not passed in.

0.9.12 thought-implanter (2011-03-03)

API

  • Added a delay parameter to the $defer service. (commit edbe9d8c)
  • Added scope() method to angular.element (jQuery) instances to retrieve a scope associated with a given DOM element. (commit 0a5c00ab)
  • Added inference of DI dependencies from function signature. This feature is experimental, check out dependency injection docs. (commit 7d4aee31)

New Features

  • Angular now correctly recognizes and uses jQuery even if it was loaded after angular's script. More info at angular.element. (commit a004d487)
  • All built-in angular services are now lazy-loaded. (commit a070ff5a)
  • To make styling of custom html tags created via widgets and directives easier, all of these elements now contain a css class with name in form of <namespace>-<directive/widget name>, e.g. <ng:include class="ng-include">. (commit c7998f5f)
  • $xhr service now automatically detects and strips google-style JSON security prefix from http responses. (commit cd139f57)

Bug Fixes

  • Rewrite of JQuery lite implementation for better supports operations on multiple nodes when matched by a selector and remove other bugs. (commit 00cc9eb3)
  • Corrected an issue where properties inherited from __proto__ show up in ng:repeat. (commit 9e67da42)
  • Fixed url encoding issue affecting $resource service. (commits e9ce2259 + 9e30baad)
  • Removed $eval() call from the $cookies factory function, which was causing duplicate instances of singleton services to be created. (commit 65585a2d)

Docs

Breaking changes

  • Removed the $init() method that used to be called after compilation of a template. This should affect only fraction of angular apps because the api was primarily being used by low level widgets tests.

    The old way of compiling the DOM element was angular.compile(element).$init(); The $init was there to allow the users to do any work to the scope before the view would be bound. This is a left over from not having proper MVC. The new recommended way to deal with initializing scope is to put it in the root constructor controller. To migrate simply remove the call to $init() and move any code you had before $init() to the root controller.

    (commit 23b255a8)

  • Changed angular.compile API from angular.compile(element[, scope]) to angular.compile(element)([scope], [cloneAttachFn]) (commits ef4bb28b + 945056b1)

  • Removed ng:watch directives since it encourages logic in the UI. (commit 87cbf9f5)

0.9.11 snow-maker (2011-02-08)

Documentation

  • completed migration of docs from the wiki site to http://docs.angularjs.org/
  • many, but by far not all, docs were updated, improved and cleaned up

Features

  • $route service now supports these features:
    • route not found handling via #otherwise()
    • redirection support via #when('/foo', {redirectTo: '/bar'}) (including param interpolation)
    • setting the parent scope for scopes created by the service via #parent()
    • reloading the current route via #reload()

API

  • added angular.element(...).scope() method to retrieve scope for a given element.

Bug Fixes

  • value attribute gets clobbered when the element contains new line character(s).
  • ng:view widget now works when nested inside an ng:include widget
  • other various small fixes

Breaking changes

  • mock $browser now throws an exception if the flush() method is called when there are no requests to be flushed. If you experience No xhr requests to be flushed! errors in your tests, it's because you called $browser.xhr.flush() unexpectedly. To make the error go away, either make sure your code makes a request via the $xhr service or remove all unneeded flush() calls.

0.9.10 flea-whisperer (2011-01-26)

Features

  • new ng:view widget to simplify integration with the $route service
  • the content of all standard HTML widgets is now being processed (e.g. <button>{{foo}}</button> works now) (commit 1d7b9d56)
  • new $log and $exceptionHandler service mocks now part of angular-mocks.js (commit f5d08963)

Bug Fixes

  • (one/multiple) could not chose from a list of objects (commit 347be5ae) null and other falsy values should not be rendered in the view (issue #242) Docs rewrite of several major portions of angular.service., angular.Array., angular.Object.* docs added support for [sitemap]((http://docs.angularjs.org/sitemap.xml) to make the docs indexable by search crawlers transition of Developer Guide docs from the wiki into docs.angularjs.org lots of improvements related to formatting of the content of docs.anguarjs.org 0.9.9 time-shift (2011-01-13) Security Added a just in case security check for JSON parsing. (commit 5f080193) Completed security review with the Google Security Team. Performance $location and $cookies services are now lazily initialized to avoid the polling overhead when not needed. $location service now listens for onhashchange events (if supported by browser) instead of constant polling. (commit 16086aa3) input widgets known listens on keydown events instead of keyup which improves perceived performance (commit 47c454a3) angular boots significantly sooner by listening for DOMContentLoaded event instead of window.load when supported by browser (commit c79aba92) new service $updateView which may be used in favor of $root.$eval() to run a complete eval on the entire document. This service bulks and throttles DOM updates to improve performance. (commit 47c454a3) Docs Major improvements to the doc parser (commit 4f22d686) Docs now offline enabled (all dependencies are bundled in the tarball) (commit 4f5d5029) Added support for navigating the docs app with keyboard shortcuts (tab and ctrl+alt+s) Bugfixes angular.Object.equals now properly handless comparing an object with a null (commit b0be87f6) Several issues were addressed in the $location service (commit 23875cb3) angular.filter.date now properly handles some corner-cases (issue #159 - fix contributed by Vojta) Breaking changes API for accessing registered services ‚Äî scope.$inject ‚Äî was renamed to scope.$service. (commit b2631f61) Support for eager-published services was removed. This change was done to make explicit dependency declaration always required in order to allow making relatively expensive services lazily initialized (e.g. $cookie, $location), as well as remove 'magic' and reduce unnecessary scope namespace pollution. (commit 3ea5941f) Complete list of affected services: $location $route $cookies $window $document $exceptionHandler $invalidWidgets To temporarily preserve the 'eager-published' status for these services, you may use ng:init (e.g. ng:init="$location = $service('$location'), ...) in the view or more correctly create a service like this: angular.service('published-svc-shim', function($location, $route, $cookies, $window, $document, $exceptionHandler, $invalidWidgets) { this.$location = $location; this.$route = $route; this.$cookies = $cookies; this.$window = $window; this.$document = $document; this.$exceptionHandler = $exceptionHandler; this.$invalidWidgets = $invalidWidgets; }, {$inject: ['$location', '$route', '$cookies', '$window', '$document', '$exceptionHandler', '$invalidWidgets'], $eager: true}); In the light of the eager-published change, to complete the cleanup we renamed $creation property of services to $eager with its value being a boolean. To transition, please rename all $creation: 'eager' declarations to $eager: true. (commit 1430c6d6) angular.foreach was renamed to angular.forEach to make the api consistent. (commit 0a6cf70d) The toString method of the angular.service.$location service was removed. (commit 23875cb3) 0.9.8 astral-projection (2010-12-23) Docs/Getting started angular-seed project to get you hacking on an angular apps quickly https://github.com/angular/angular-seed Performance Delegate JSON parsing to native parser (JSON.parse) if available Bug Fixes Ignore input widgets which have no name (issue #153) 0.9.7 sonic-scream (2010-12-10) Bug Fixes $defer service should always call $eval on the root scope after a callback runs (issue #189) fix for failed assignments of form obj[0].name=value (issue #169) significant parser improvements that resulted in lower memory usage (commit 23fc73081feb640164615930b36ef185c23a3526) Docs small docs improvements (mainly docs for the $resource service) Breaking changes Angular expressions in the view used to support regular expressions. This feature was rarely used and added unnecessary complexity. It not a good idea to have regexps in the view anyway, so we removed this support. If you had any regexp in your views, you will have to move them to your controllers. (commit e5e69d9b90850eb653883f52c76e28dd870ee067) 0.9.6 night-vision (2010-12-06) Security several improvements in the HTML sanitizer code to prevent code execution via hrefs and other attributes. Commits: 41d5938883a3d06ffe8a88a51efd8d1896f7d747 2bbced212e2ee93948c45360fee00b2e3f960392 Docs set up http://docs.angularjs.org domain, the docs for the latest release will from now on be deployed here. docs app UI polishing with dual scrolling and other improvements Bug Fixes select widget now behaves correctly when it's option items are created via ng:repeat (issue #170) fix for async xhr cache issue #152 by adding $browser.defer and $defer service Breaking Changes Fix for issue #152 might break some tests that were relying on the incorrect behavior. The breakage will usually affect code that tests resources, xhr or services/widgets build on top of these. All that is typically needed to resolve the issue is adding a call to $browser.defer.flush() in your test just before the point where you expect all cached resource/xhr requests to return any results. Please see 011fa39c2a0b5da843395b538fc4e52e5ade8287 for more info. The HTML sanitizer is slightly more strinct now. Please see info in the "Security" section above. 0.9.5 turkey-blast (2010-11-25) Docs 99% of the content from the angular wiki is now in the docs Api added angular.Array.limitTo to make it easy to select first or last few items of an array 0.9.4 total-recall (2010-11-18) Docs searchable docs UI improvements we now have ~85% of the wiki docs migrated to ng docs some but not all docs were updated along the way Api ng:include now supports onload attribute (commit cc749760) Misc Better error handling - compilation exception now contain stack trace (commit b2d63ac4) 0.9.3 cold-resistance (2010-11-10) Docs prettier docs app with syntax highlighting for examples, etc added documentation, examples and scenario tests for many more apis including: all directives all formatters all validators some widgets Api date filter now accepts strings that angular.String.toDate can convert to Date objects angular.String.toDate supports ISO8061 formated strings with all time fractions being optional ng:repeat now exposes $position with values set to 'first', 'middle' or 'last' ng:switch now supports ng:switch-default as fallback switch option Breaking changes we now support ISO 8601 extended format datetime strings (YYYY-MM-DDTHH:mm:ss.SSSZ) as defined in EcmaScript 5 throughout angular. This means that the following apis switched from YYYY-MM-DDTHH:mm:ssZ to YYYY-MM-DDTHH:mm:ss.SSSZ (note the added millis) when representing dates: angular.Date.toString angular.String.fromDate JSON serialization and deserialization (used by json filter, $xhr and $resource) removed SSN validator. It's unlikely that most people will need it and if they do, it can be added simple RegExp validator. 0.9.2 faunal-mimicry (2010-11-03) Docs created documentation framework based on jsdoc syntax (commit 659af29a) jsdoc parser template generator json generator angular doc viewer app scenario runner for all example code documentation for all angular filters (commits 1fe7e3a1 & 1ba8c2a33) docs example code scenario tests for example code Testability Scenario Runner binding DSL in Scenario can now match bindings without specifying filters dsl statements now accept a label argument to make test output more readable (issue #94) dsl element() statement now implements most of the jQuery API (issue #106) new browser() dsl statement for getting info about the emulated browser running the app (issue #109) scenario runner is now compatible with IE8 (issue #93) scenarior runner checks if URL would return a non-success status code (issue #100) binding() DSL now accepts regular expressions new textarea() scenario runner DSL for entering text into textareas Misc lots of small bugfixes Breaking changes Scenario Runner navigating to about:blank is no longer supported. It results in a sandbox error navigateTo() is now browser().navigateTo(). Old code must be updated file:// URLs are no longer supported for running a scenario. You must use a web server that implements HEAD 0.9.1 repulsion-field (2010-10-26) Security added html sanitizer to fix the last few known security issues (issues #33 and #34) API new ng:submit directive for creating onSubmit handlers on forms (issue #76) the date filter now accepts milliseconds as well as date strings (issue #78) the html filter now supports 'unsafe' option to bypass html sanitization Testability lots of improvements related to the scenario runner (commit 40d7e66f) Demo added a new demo application: Personal Log (src example/personalLog) Chores lots of fixes to get all tests pass on IE added TzDate type to allow us to create timezone idependent tests (issue #88) Breaking changes $cookieStore service is not globally published any more, if you use it, you must request it via $inject as any other non-global service html filter now sanitizes html content for XSS attacks which may result in different behavior 0.9.0 dragon-breath (2010-10-20) Security angular.fromJson not safer (issue #57) readString consumes invalid escapes (issue #56) use new Function instead of eval (issue #52) Speed css cleanup + inline all css and images in the main js (issue #64) Testability initial version of the built-in end-to-end scenario runner (issues #50, #67, #70) API allow ng:controller nesting (issue #39) new built-in date format filter (issue #45) $location needs method you call on updates (issue #32) Chores release versioning + file renaming (issue #69) Breaking changes $location.parse was replaced with $location.update all css and img files were inlined into the main js file, to support IE7 and older app must host angular-ie-compat.js file Big Thanks to Our Community Contributors Vojta Jina