JSFiddle - React, Tailwind, and code Playground
HTML
<body ng-app="myApp" >
<test-dir fam-people='[1,4,6,7,6]'> </test-dir>
</body>
JavaScript
var myApp = angular.module('myApp', []);
myApp.directive('testDir', function() {
return { restrict: 'E',
//scope: { famPeople: '=' },
template: "<ol> <li ng-repeat='p in people track by $index'> {{p}}",
link:function(scope, element, attrs){
scope.people=JSON.parse(attrs.famPeople);
}
};
});