JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<script>
var myApp = angular.module('myApp', []);
myApp.directive('shouldAppear', function () {
return {
template: "Should appear",
link: function(){
alert('should run');
}
};
});
</script>
<body ng-app="myApp">
<div ng-if="false" should-appear></div>
</body>