Were you able to find the solution for this? I'm stuck with the same 
problem.

On Thursday, January 24, 2013 1:20:25 AM UTC+5:30, Paolo Milani Comparetti 
wrote:
>
> Hi folks,
>
> I have a question about accessing angularjs attributes using their 
> normalized names.
>
> In a directive's compiling and linking function, we get this handy 
> attributes object:
>
> http://docs.angularjs.org/api/ng.$compile.directive.Attributes
>
> This allows us to access attributes such as data-my-stuff, my-stuff, 
> my-stuff, with a unified syntax: attrs.myStuff.
>
> However, this only helps me if I am inspecting or modifying the attributes 
> of the element I am compiling/linking. Is there a similar way to access the 
> normalized attributes of a child element?
>
> The use-case is that my compilation manipulates the html inside the 
> element depending on the attributes on the individual nodes. Specifically: 
> my table directive adds and configures click-to-sort functionality to table 
> headers depending on attributes on the table header itself.
>
>
> thanks a lot for any help,
>
> regards,
> Paolo Milani
>

-- 
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/groups/opt_out.

Reply via email to