diff options
| author | Igor Minar | 2012-03-07 16:54:12 -0800 |
|---|---|---|
| committer | Igor Minar | 2012-03-08 11:06:15 -0800 |
| commit | 512db03cc003c590a9dcd2b1ee1f3fb2cbad1b78 (patch) | |
| tree | d73cc41ca75771a79ee351d3cd6b7c0f1cd667cb /src/widget | |
| parent | ee7209fe2676f836ef39ff77e3aa5c46572e817b (diff) | |
| download | angular.js-512db03cc003c590a9dcd2b1ee1f3fb2cbad1b78.tar.bz2 | |
docs(ng-list): update the ng-list directive docs
Diffstat (limited to 'src/widget')
| -rw-r--r-- | src/widget/input.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/widget/input.js b/src/widget/input.js index 45d7d6a0..af446c6b 100644 --- a/src/widget/input.js +++ b/src/widget/input.js @@ -1107,15 +1107,6 @@ var requiredDirective = [function() { * @description * Text input that converts between comma-seperated string into an array of strings. * - * @param {string} ng:model Assignable angular expression to data-bind to. - * @param {string=} name Property name of the form under which the widgets is published. - * @param {string=} required Sets `REQUIRED` validation error key if the value is not entered. - * @param {string=} ng:pattern Sets `PATTERN` validation error key if the value does not match the - * RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for - * patterns defined as scope expressions. - * @param {string=} ng:change Angular expression to be executed when input changes due to user - * interaction with the input element. - * * @element input * * @example @@ -1127,7 +1118,7 @@ var requiredDirective = [function() { } </script> <form name="myForm" ng:controller="Ctrl"> - List: <input type="list" name="input" ng:model="names" required> + List: <input name="input" ng:model="names" ng:list required> <span class="error" ng:show="myForm.list.error.REQUIRED"> Required!</span> <tt>names = {{names}}</tt><br/> @@ -1145,7 +1136,7 @@ var requiredDirective = [function() { it('should be invalid if empty', function() { input('names').enter(''); - expect(binding('names')).toEqual(''); + expect(binding('names')).toEqual('[]'); expect(binding('myForm.input.valid')).toEqual('false'); }); </doc:scenario> |
