Whenever overlay element is clicked and startCopying() method is called, the text from copyTextTag should be copied in the pasteTextTag element.
The text should be copied in HTML format and pasted as HTML format. Also there are multiple copyTextTag but pasteTextTag is one, so the text must be copied only of clicked overlays copyTextTag div.
<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
};