Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 33c6738

Browse files
committed
Extending ng-model functionality to hidden fields
Hidden fields are still used in hybrid solutions such as MVC.net/etc. and it is valuable to be able to set value of this type of field through ng-model.
1 parent bf285d3 commit 33c6738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/directive/input.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ var inputType = {
375375
*/
376376
'checkbox': checkboxInputType,
377377

378-
'hidden': noop,
378+
'hidden': textInputType,
379379
'button': noop,
380380
'submit': noop,
381381
'reset': noop

0 commit comments

Comments
 (0)