directive - AngularJS DOM selection inside tabset -


i'm bit of angular newbie, have run seems pretty dumb problem.

i've created directive requires me find specific dom element. works nice , good, except once place directive inside bootstrap ui tabset, bad things happen. think since tabset directive uses custom html elements (i.e. , dom selection no longer works. i've tried using jquery selector, fails. here's simplified version of code:

--html <body ng-controller="maincontroller">  <tabset>     <tab heading="title 1">         <my-directive id="mywidget"></my-directive>     </tab> </tabset  </body>   --js app.directive('registrationgrid', function() {  return {     restrict: 'e',     link: function($scope, element, attrs) {         var element = document.getelementbyid("mywidget");         //do stuff here } }) 

there has easy way around this, i'm @ loss. i'm tempted update tabs directive work off of attributes instead of it's own element, hoping easier fix.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -