JSFiddle - React, Tailwind, and code Playground

by terebentina

HTML

<div ng-app="test" ng-controller="MainCtrl">
    <custom ng-repeat="page in pages" ng-model="page"></custom>
</div>

JavaScript

angular.module('test', []).controller('MainCtrl', function($scope) {
    $scope.pages = [
        {width: 100, height: 100},
        {width: 200, height: 200}
    ];
}).directive('custom', function() {
    return {
        restrict: 'E',
        link: function(scope, element, attrs) {
            attrs.$observe('ngModel', function(val) {
                console.log(val);
            });
        }
    }
});