I have the following
<div>
<div ng-repeat="data in datas" title='{{ data.name }}' onClick="location.href='\{{ data.name }}'" >{{ data.name }}</div><br/>
</div>
in my angular file i have
var mainApp= angular.module('mainApp',[]);
mainApp.controller('formCTR',['$scope','$http',function($scope,$http){
$http.post('/here',{ data: 'something' }).success(
function(data){
$scope.datas=data;
}
)
}]);
when i do the click the url shows
http://localhost:3000/url/{{ data.name }}
how do i display the name of the data inside the onClick to
http://localhost:3000/url/right_name
thanks