I have generated a dynamic form HTML using angular js directive and I want to assign values to the generated textbox using the values I provided (values may come from database or from array)
when I am not sending any parameter dynamically, its normally run by following code and assign value to the textbox
$scope.submitted = function() {
$scope.title = "submitted";
};
But when I am sending dynamic value to the form then Its not working.
The function got called from the directive after click and showing alert from that function but the value not assigning to the textbox by model. Here is the code
$scope.submitted = function(par) {
alert(par);
$scope.title = par;
};
Please findout the code on following plunker: