Hi,

        Is there a way to wrap tags like this ? I want all my 'href' tags 
to wrapped,

.directive("packagedownload", function(){
 return {
   restrict: "E",
   transclude: true,
   scope: {
     title: "@"
   },
   templateUrl: "/packagedownload.html",
   
   link: function(scope, element, attrs){
        
 
        var as = element.find('a');
 
        //as.wrap('<span style="color: red"></span>');
        for( var i = 0; i < as.length; i ++ ){
 
            console.log( as[i] ) ;
 
            var atag = as[i];

            
        }
   }
 };

Thanks,
Mohan

-- 
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.

Reply via email to