We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c4eda7 commit c176ba4Copy full SHA for c176ba4
test/ng/directive/selectSpec.js
@@ -987,6 +987,20 @@ describe('select', function() {
987
expect(element.find('option').eq(0).prop('selected')).toBeTruthy();
988
expect(element.find('option').length).toEqual(2);
989
});
990
+
991
992
+ it('should use exact same values as values in scope with one-time bindings', function() {
993
+ scope.values = [{name: 'A'}, {name: 'B'}];
994
+ scope.selected = scope.values[0];
995
+ createSelect({
996
+ 'ng-model': 'selected',
997
+ 'ng-options': 'value.name for value in ::values'
998
+ });
999
1000
+ browserTrigger(element.find('option').eq(1));
1001
1002
+ expect(scope.selected).toBe(scope.values[1]);
1003
1004
1005
1006
0 commit comments