and the child directive parm has a bunch of input elements on it and DOES NOT have it's own controller.
子指令parm上有一堆输入元素,并且没有自己的控制器。
I am trying to loop over every element that is on this form in my controller:
我试图在我的控制器中循环遍历此表单上的每个元素:
console.log(vmParms.frmTLParms);
angular.forEach(vmParms.frmTLParms, function(value, key) {
// Do something with (value, key)
});
but the output from the console log is undefined
但是控制台日志的输出是未定义的
Any idea on how I can loop over all these form elements (I need to get information about $pristine which is why I need the form elements, not just the parameter objects)?