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

Commit adb2863

Browse files
committed
docs(form): explain why the empty-string setter is created
1 parent 94533e5 commit adb2863

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ng/directive/form.js

+1
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ var formDirectiveFactory = function(isNgForm) {
517517

518518
function getSetter(expression) {
519519
if (expression === '') {
520+
//create an assignable expression, so forms with an empty name can be renamed later
520521
return $parse('this[""]').assign;
521522
}
522523
return $parse(expression).assign || noop;

0 commit comments

Comments
 (0)