The event.id is rendered/compiled correctly in the html text but the function does not recieve it correctly. even when it shows it correctly in the source, whats going on here?
<span ng-repeat="event in [{"id":"dxczhlyvmblc","name":"4 on 4 - Pickup","venuename":"Box Hill Aqualink","numspotsleft":"<strong>Spots now open<\/strong>","day":"28","dayname":"Wednesday"}]">
<button ng-click="toggleModal('<% event.id %>')">More detail = <% event.id %></button>
</span>
shopApp.controller('MainController', function($scope, $http, $q){
$scope.toggleModal = function(eventId){
console.log(eventId+" toggle");
};})
Note i am using <% in stead of {{ because of the templating engine.
