Yes, you can access a form in the controller (as stated in the docs).
Except when your form is not defined in the controller scope and is defined in a child scope instead.
Basically, some angular directives, such as ng-if
, ng-repeat
or ng-include
, will create an isolated child scope. So will any custom directives with a scope: {}
property defined. Probably, your foundation components are also in your way.
I had the same problem when introducing a simple ng-if
around the <form>
tag.
See these for more info:
Note: I suggest you re-write your question. The answer to your question is yes but your problem is slightly different:
Can I access a form in a child scope from the controller?
To which the answer would simply be: no.