2015년 1월 6일 화요일

[AngularJS] how to get the ngModel value while loading dynamic form builder

Am using angular-form-gen bower component for generating the dynamic form. While using this form builder how can i get the ngModel of each which is dynamically loaded. Actually markup code look like

<input type="text" ng-model="form.data[field.schema.name]" />

In above the ngModel is loaded dynamically. I need to get the ngModel to manipulate the element.So how could it possible. Is there anyone help me to get the solution for this.



You say you need ngModel, what do you mean, and where do you need it?
If you want to manipulate the element containing the ngModel directive you can write another directive requesting ngModel, and use that to manipulate it.



I think today is a good day for me at last i found the exact reason behind this issue. Thank you for your valid support and suggestion.


댓글 없음:

댓글 쓰기