For some reason the id in <div class='popup' id = '{{$index}}'
is wrong inside its directive.
How can i manually $compile the id of an element?
.directive('repeater', function() {
var linkFn = function(scope, element, attrs){
var id = $(element).attr('id');
alert(id);