Is it feasible to retrieve all elements within an ng-form, similar to how it can be done with a regular form?
For instance:
<form name="myForm" id="myForm">...</form>
The following code works in this case:
document.forms["myForm"].elements
However, when dealing with:
<ng-form name="myForm" id="myForm">...</ng-form>
Neither of the methods below seem to yield the desired results:
document.getElementsByTagName("ng-form")["myForm"].elements
or
document.getElementById("myForm").elements
Both return undefined. Is there a way to access all elements within an ng-form?