Hi all,
*sample.html*
<div class="clearfix " *scroller*>
//DOTO
<div class="leftmenu"
*scroller> * </div>
</div>
*Directive:*
app.directive('*scroller*', function($window, $rootScope , $timeout)
{
return {
priority: 0,
restrict: 'AC',
link: function(scope, element, attrs)
{
console.log(element);
element.hasClass('*leftmenu*'); --> getting
*false *
element.hasClass('*clearfix*'); --> getting
*true*
}
};
});
inside link function i'm getting always the parent element. i need to get
the child element (from where this directive called recently).
some one help me to get child element details.
Thanks & Regards,
Sasikumar.V
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.