I am trying to access a html defined form in the $scope in the controller. The thing is that the form is under ng-switch directive so I was suspecting this is the issue. Still, I couldn't find any solution to this.
My code is :
<div ng-switch="bla">
<div ng-switch-when="blabla">
<form name="myForm">
</form>
</div>
</div>
And the js : $scope.myForm is returning undefined.
Can you please help me with this?
Thanks in advance.