JSFiddle - React, Tailwind, and code Playground

HTML

<body ng-app="myApp">
    <div ng-controller="myController">
        <textarea paste-example></textarea>
        <div>{{ pastedText }}</div>
    </div>
</body>

JavaScript

var myApp = angular.module('myApp', []);

myApp.controller('myController', function($scope) {
    $scope.pastedText = '';
});

myApp.directive('pasteExample', function(){
	var linkFn = function(scope, element, attrs) {
        
        element.on('paste', function() {
            
            setTimeout(function() {
                console.log(element.val());
                scope.pastedText = element.val();
                scope.$apply();
            }, 5);
            
        });
	};

	return {
		restrict: 'A',
		link: linkFn
	};
});