I want to change location on clicking the div .
Below is code
<div class="divsub" ng-repeat="item1 in content" ng-click="go('/{{item1.title }}')">
<div class="divsubtitle"><a >{{item1.title}}</a></div>
<div class="divsubinner"></div>
<div class="divsublink">
<div style="float:left;text-decoration:underline;margin-left:19px">View Demo</div>
<div style="float:left;text-decoration:underline;margin-left:10px">Download</div>
</div>
</div>
Below is my controller
first2.controller('nameListCtrl', function ($scope,urls_list)
{
$scope.content=urls_list;
$scope.go=function(path)
{
alert(path)
}
});
Why alert is not working on clicking the div