During the development of a visual force page, I utilized AngularJS to create a record under a custom object in Salesforce. The Salesforce controller returned the ID to a javascript callback function, which I tried to display in a label field. However, I encountered an issue where the label field wasn't being populated with the message value using AngularJS:
$scope.lblMsg={value:result['message']}
Instead, when I used the following vanilla javascript code, the message was displayed successfully:
document.getElementById('lblMsg').innerHTML=result['message'];
I am seeking guidance on what mistake might have been made with AngularJS and any effective solutions to achieve the task using AngularJS.
You can access the form hosted at the following link: