I get the following td value and print it in input text by jquery it works well,but when trying to use this value by ng-model angular it get null value ,it just works when I type a value in textbox by hand not by jquery code.
$(document).ready(function() {
$("div.contacts").on('click', "table tr td.contactIdTD", function() {
$("#contactId").val($(this).text());
});
});
td value
<td class="contactIdTD">10000</td>
input text
<input type="text" id="contactId" class="form-control" ng-model="contactId">