I am curious about something. There is a <div>
and a <button>
in my code. I am looking to access the inner markup of the <div>
within the ng-click
function without relying on jQuery. Can you give me some guidance?
<div id = text-entry-view contenteditable="true"></div>
<button class="btn btn-primary btn-block" ng-click='sendMsg()'>Send</button>
app.controller('ActiveController', ['$scope', 'contact', '$ManageLoggedInUsername', function($scope, contact, $ManageLoggedInUsername){
$scope.loggedInUsername = $ManageLoggedInUsername.getUsername();
$scope.contact = contact;
$scope.sendMsg = function(){
//console.log("MSG :: " + <div#text-entry-view.innerHTML>);
}
}]);
I would like to retrieve the content of the <div>
inside the sendMSG
function. Any assistance would be greatly appreciated.