hello I try to generate an html id in the form a + {{r}} r being the browse 
of ng-repeat when I want to recover the id my js recovered #a {{r}} instead 
of # a1 or in my html code id = a1 id = a2 ...

code html :

<div ng-controller="ddController" >
               <div class="containerslot" ng-controller="myCtrl">
                       <div ng-repeat="r in [1,2, 3, 4, 5, 6, 7, 8, 9, 
10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]">
                           <span class="slot grey" id="a{{r}}" ng-repeat="c 
in [1]" x-lvl-draggable='true' x-lvl-drop-target="true" 
x-on-drop="dropped(dragEl, 
dropEl)" ng-dblclick="showTabDialog(r)" data-color="grey"><button style="
margin-right: 145px;
                               height: 22px;
                               display: block;" ng-click=
"openUserProfile(r)">config</button></span>
                       </div>
                   </div>
               </div>

js value 
var src = document.getElementById(data); 
var dest = document.getElementById(id);
                   
                   console.log(src)
                   console.log(dest)

*src and dest not value because id = #a{{r}}*

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/fa900980-a225-485d-bbd5-0cd7947c92aeo%40googlegroups.com.

Reply via email to