When an overlay element is clicked and the startCopying() method is triggered, the text from the copyTextTag should be copied into the pasteTextTag element.
The text should be copied in HTML format and pasted as HTML format. Additionally, there are multiple copyTextTags but only one pasteTextTag, so the text should only be copied from the copyTextTag div of the clicked overlay.
<div class="col-md-4">
<div class="copyTextTag">
svlgmdfgndfjkgndjkgndkjgnerjkgndkgnjdkjgndjkgnffsdf<br/>Test 1
</div>
<div class="overlay" ng-click="homectrl.startCopying($event)"></div>
</div>
<div class="col-md-4">
<div class="copyTextTag">
svlgmdfgndfjkgndjkgndkjgnerjkgndkgnjdkjgndjkgnffsdf<br/>Test 1
</div>
<div class="overlay" ng-click="homectrl.startCopying($event)"></div>
</div>
/* Area where the copied text should be pasted */
<div class="pasteTextTag"></div>
/* Angular Code */
function startCopying(evt){
console.log(angular.element(evt.currentTarget)) //not working
};