It is my first day and I’m trying to get a simple even workign but it isn’t. Here’s a fiddle: http://jsfiddle.net/LKktL/
<body ng-app>
<div ng-controller='EventAddCtrl'>
<p>Nothing here {{'yet' + '!'}}</p>
<div class='first-test' ng-click="say_hello()">angular test to say hello</div>
</div>
</body>
function EventAddCtrl($scope){
$scope.say_hello = function() {
alert('hello in there');
}
}
It’s obviously not working and trying to figure out why. thx in advance
You have some setting problems with jsFiddle. Here is the working jsFiddle
You can try plunker. It works pretty good like jsFiddle.
1.Add Body tag
<body ng-app>2.pick “no wrap (head)”