I'm currently working on a jQuery app and trying to gradually change it to angularJS. I don't want to change all existing jQuery code. The jQuery code makes an ajax call and updates a variable depending on the ajax result. I need this result in my angular scope. I tried to create a hidden input, or input with display none and update it with jQuery $('#accountId').val(value) :
<input type="text" ng-model="account.accountId" style="display:none" id="accountId" name="accountId">
But my $scope variable $scope.account.accountId doesn't get updated.
I also tried things like ng-value, jquery trigger input, ...
Thanks