Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 512db03

Browse files
committed
docs(ng-list): update the ng-list directive docs
1 parent ee7209f commit 512db03

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/widget/input.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,15 +1107,6 @@ var requiredDirective = [function() {
11071107
* @description
11081108
* Text input that converts between comma-seperated string into an array of strings.
11091109
*
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-
*
11191110
* @element input
11201111
*
11211112
* @example
@@ -1127,7 +1118,7 @@ var requiredDirective = [function() {
11271118
}
11281119
</script>
11291120
<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>
11311122
<span class="error" ng:show="myForm.list.error.REQUIRED">
11321123
Required!</span>
11331124
<tt>names = {{names}}</tt><br/>
@@ -1145,7 +1136,7 @@ var requiredDirective = [function() {
11451136
11461137
it('should be invalid if empty', function() {
11471138
input('names').enter('');
1148-
expect(binding('names')).toEqual('');
1139+
expect(binding('names')).toEqual('[]');
11491140
expect(binding('myForm.input.valid')).toEqual('false');
11501141
});
11511142
</doc:scenario>

0 commit comments

Comments
 (0)