JSFiddle - React, Tailwind, and code Playground

by Fernando Santos

HTML

<div ng-app="TestApp">
    <div id="divController" ng-controller="TestController as TestCtrl">
        <div id="clickTest" ng-click="alertValue(event.name)">Click me</div>
    </div>
</div>

JavaScript

var app = angular.module("TestApp", []);
app.controller("TestController", ["$scope", function($scope) {
    $scope.event = {
        name : "it works!"
    }
    $scope.alertValue = function(eventName) {
       alert(eventName);
    }
}])