angular.js/test/ng/directive
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
..
aSpec.js fix(a): workaround IE bug affecting mailto urls 2013-02-14 16:42:58 -08:00
booleanAttrsSpec.js feat(directive): added ng-open boolean directive 2013-01-18 21:16:16 -08:00
formSpec.js Fix failing test in IE 10 2013-03-14 22:03:37 -07:00
inputSpec.js fix(ngModel): use paste/cut events in IE to support context menu 2013-04-17 21:20:08 +01:00
ngBindSpec.js chore(ngSanitize): extract $sanitize, ngBindHtml, linkyFilter into a module 2012-04-11 15:50:47 -07:00
ngClassSpec.js fix(ngClass): should remove classes when object is the same but property has changed 2013-04-16 13:15:49 +01:00
ngClickSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngCloakSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngControllerSpec.js feat(controller): support as instance syntax 2013-04-22 23:28:41 -07:00
ngCspSpec.js feat($parse): CSP compatibility 2012-04-27 23:04:24 -07:00
ngEventDirsSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngIfSpec.js chore(ngAnimate): CSS classes X-setup/X-start -> X/X-active 2013-05-08 16:03:31 -07:00
ngIncludeSpec.js chore(ngAnimate): CSS classes X-setup/X-start -> X/X-active 2013-05-08 16:03:31 -07:00
ngInitSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngKeySpec.js feat(directive): add ngKeypress directive for handling keypress event 2013-03-08 21:56:32 +01:00
ngNonBindableSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngPluralizeSpec.js fix(ngPluralize): handle the empty string as a valid override 2013-05-10 20:03:24 +01:00
ngRepeatSpec.js chore(ngAnimate): CSS classes X-setup/X-start -> X/X-active 2013-05-08 16:03:31 -07:00
ngShowHideSpec.js chore(ngAnimate): CSS classes X-setup/X-start -> X/X-active 2013-05-08 16:03:31 -07:00
ngSrcSpec.js fix(ngSrc): don't set src if value is empty string 2012-09-06 16:06:24 -07:00
ngStyleSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngSwitchSpec.js chore(ngAnimate): CSS classes X-setup/X-start -> X/X-active 2013-05-08 16:03:31 -07:00
ngViewSpec.js chore(ngAnimate): CSS classes X-setup/X-start -> X/X-active 2013-05-08 16:03:31 -07:00
scriptSpec.js fix(script): Incorrectly reading script text on ie 2012-04-20 11:29:34 -07:00
selectSpec.js feat(select): match options by expression other than object identity 2013-05-14 19:58:05 +01:00
styleSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00