angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

Unclear form accessibility from within directive

Open smuellerus opened this issue 12 years ago • 2 comments

I have two forms in two directives, respectively. In one form, I can access the form in its directive JS using:

<form name="formName"..>
scope.formName

This does not work in the other form, however. After some research, someone recommended using an object in this manner, which works:

<form name="form.name"..>
scope.form = {};
scope.form.name

What is the official way of accessing the form from within the directive JS?

Thanks!

smuellerus avatar Jul 15 '14 08:07 smuellerus

We need an actual example to see the difference between the two forms. Can you provide a plnkr or something like that?

Narretz avatar Jul 16 '14 18:07 Narretz

@smuellerus We haven't heard from you and in the issue's current state we cannot really do anything about it. So I'm gonna close it; feel free to reopen if you can provide more information.

Narretz avatar Oct 18 '14 14:10 Narretz