$scope.param = [1,2,3];
<div test test-data="param"></div>
angular.module('testApp')
.directive('test', function () {
return {
scope: {
imgData: '@testData'
},
restrict: 'A',
link: function (scope, element, attrs) {
}
}
})