JSFiddle - React, Tailwind, and code Playground
by igalst
HTML
<div ng-app="app">
<ul ng-init="list = [{name:'John', age:25}, {name:'Mary', age:28}]">
<li ng-repeat="person in list" nc-foo="person">{{person.name}}</li>
</ul>
</div>
JavaScript
angular.module("app").directive("ncFoo", function($parse) {
return {
restrict: "A",
link: function($scope, element, attrs) {
var handler = $parse(attrs.ncFoo);
console.log("parsed", handler($scope));
}
};
});