JSFiddle - React, Tailwind, and code Playground

by raygarner

HTML

<div ng-app="myApp">
    <div test>TEST Div
        <div id="findme"></div>
    </div>
</div>

JavaScript

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

myApp.directive('test', function () {
    return {
        restrict: "A",
        link: function (scope, elm, attr) {
            var look = elm.find('#findme');
             elm.addClass("addedClass");
            console.log(look);
        }
    };
});
    function MyCtrl($scope) {
        $scope.aaa = 3432;
    }