angular.js/test/ng
quazzie c32a859bdb feat(select): match options by expression other than object identity
Extend ng-options with a new clause, "track by [trackByExpression]", which can be used when
working with objects.  The `trackByExpression` should uniquely identify select options objects.
This solves the problem of previously having to match ng-options objects by identity.
You can now write: `ng-options="obj as obj.name for obj in objects track by obj.id"`
The "track by" expression will be used when checking for equality of objects.

Examples:
<select
    ng-model="user.favMovieStub"
    ng-options="movie as movie.name for movie in movies track by movie.id">
</select>

scope: {
  user: { name: 'Test user', favMovieStub: { id: 1, name: 'Starwars' } }
  movies: [{ id: 1, name: 'Starwars', rating: 5, ... }, { id: 13, ... }]
}

The select input will match user favMovieStub to the first movie in the movies array, and show
"Star Wars" as the selected item.
2013-05-14 19:58:05 +01:00
..
directive feat(select): match options by expression other than object identity 2013-05-14 19:58:05 +01:00
filter fix(date): correctly format dates with more than 3 sub-second digits 2013-05-07 22:59:46 +01:00
anchorScrollSpec.js fix($sniffer): report history false on Android < 4 2012-05-14 15:12:51 -07:00
animationSpec.js feat(ngAnimate): add support for animation 2013-04-02 14:05:06 -07:00
animatorSpec.js feat(ngAnimate): cancel previous incomplete animations when new animations take place 2013-05-13 21:09:43 -07:00
browserSpecs.js fix($browser): should use first value for a cookie. 2013-05-11 09:28:14 -07:00
cacheFactorySpec.js feat($cacheFactory): cache.put now returns the added value 2012-11-25 00:01:34 +01:00
compileSpec.js test(browser/compile): fix calls to Jasmine fail() 2013-04-29 16:56:35 +01:00
controllerSpec.js test(controller): instantiate controller defined on window 2013-04-30 14:38:14 -07:00
documentSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
exceptionHandlerSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
httpBackendSpec.js feat($httpBackend): add timeout support for JSONP requests 2013-04-30 20:42:34 +01:00
httpSpec.js feat(http): support request/response promise chaining 2013-03-27 13:13:59 -07:00
interpolateSpec.js fix($parser): string concatination with undefined model 2012-09-06 16:06:21 -07:00
localeSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
locationSpec.js fix($location): prevent navigation when event isDefaultPrevented 2013-05-06 21:52:53 -07:00
logSpec.js feat($log): add $log.debug() 2013-01-17 16:47:39 -08:00
parseSpec.js test(parse): Test for the parsing not invoking twice to get self 2013-04-29 19:12:19 +01:00
qSpec.js feat($q): add $q.always() method 2013-04-24 20:56:18 +01:00
rootElementSpec.js feat($rootElement): added application root element 2012-06-02 14:50:58 -07:00
rootScopeSpec.js fix($rootScope) ensure $watchCollection correctly handles arrayLike objects 2013-05-02 15:12:37 +01:00
routeParamsSpec.js fix($route): support route params not separated with slashes. 2013-01-16 09:41:02 -08:00
routeSpec.js test($route): add tests for matching 'otherwise' routes 2013-03-08 12:00:34 -08:00
snifferSpec.js feat($sniffer): Add support for supportsAnimations flag for detecting CSS Animations browser support 2013-05-08 15:40:37 -07:00
timeoutSpec.js fix($timeout): allow calling $timeout.cancel() with undefined 2012-06-04 17:43:14 -07:00
windowSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00