JSFiddle - React, Tailwind, and code Playground
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);
}
}])