@@ -1107,15 +1107,6 @@ var requiredDirective = [function() {
1107
1107
* @description
1108
1108
* Text input that converts between comma-seperated string into an array of strings.
1109
1109
*
1110
- * @param {string } ng:model Assignable angular expression to data-bind to.
1111
- * @param {string= } name Property name of the form under which the widgets is published.
1112
- * @param {string= } required Sets `REQUIRED` validation error key if the value is not entered.
1113
- * @param {string= } ng:pattern Sets `PATTERN` validation error key if the value does not match the
1114
- * RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for
1115
- * patterns defined as scope expressions.
1116
- * @param {string= } ng:change Angular expression to be executed when input changes due to user
1117
- * interaction with the input element.
1118
- *
1119
1110
* @element input
1120
1111
*
1121
1112
* @example
@@ -1127,7 +1118,7 @@ var requiredDirective = [function() {
1127
1118
}
1128
1119
</script>
1129
1120
<form name="myForm" ng:controller="Ctrl">
1130
- List: <input type="list" name="input" ng:model="names" required>
1121
+ List: <input name="input" ng:model="names" ng:list required>
1131
1122
<span class="error" ng:show="myForm.list.error.REQUIRED">
1132
1123
Required!</span>
1133
1124
<tt>names = {{names}}</tt><br/>
@@ -1145,7 +1136,7 @@ var requiredDirective = [function() {
1145
1136
1146
1137
it('should be invalid if empty', function() {
1147
1138
input('names').enter('');
1148
- expect(binding('names')).toEqual('');
1139
+ expect(binding('names')).toEqual('[] ');
1149
1140
expect(binding('myForm.input.valid')).toEqual('false');
1150
1141
});
1151
1142
</doc:scenario>
0 commit comments