I'm trying to develop one filter in angularJs without using jquery. I am using custom directive to create one popup including checkbox. I have 2 doubts
1. Here I have 2 popup which I created using ng-repeat and I am passing some arguments in directive. If I pass simple string like bellow it will work properly
<input checkbox-all="0-isSelected-id1" class="clsInput" />
app.directive('checkboxAll', function () {
return function(scope, iElement, iAttrs) {
//here we can split this string
var parts = iAttrs.checkboxAll.split('-');
});
But If I pass like this
<input checkbox-all="{{$index}}-isSelected-id{{$index}}" class="clsInput" />
app.directive('checkboxAll', function () {
return function(scope, iElement, iAttrs) {
//it will come undefined
var parts = iAttrs.checkboxAll.split('-');
});
I need to pass that index to that directive because this all code is inside one ng-repeat.
2. This two popup have same class and different id, I want to show this popup on click of 2 div. I want to do this without using jquery. on each click I want to set two styles to that popup(left and top for positioning that div in proper place)
requirement
Here I added my code, it is not perfect

