Hi,

Yes that’s what is happening. Thanks for confirming this.

No pro in custom HTML Elements here: if my <tree-row> element extends the 
HTMLTableRowElement (indicating it’s a <tr>), I suspect it might work (to be 
confirmed). For this (and other scenarios where I’d like to use a different 
HTMLElement type for my elements) I’d need to be able to set the prototype of 
the element.

Regards,
Fritz



Fritz Gerneth
[email protected]

[cid:3660C66E-9CB9-49BD-A2D7-B90B66127DA1]

funct GmbH
Amalienstr. 39
D-80799 Munich

T:   +49-89 21 909 16 0
F:   +49-89 21 909 16 00
www.funct.com<http://www.funct.com/>



Managing director:

Sascha Schwartz

Company register:

Amtsgericht München HRB 203304



From: [email protected] [mailto:[email protected]] On Behalf Of 
Sander Elias
Sent: Dienstag, 29. Juli 2014 09:04
To: [email protected]
Subject: [AngularJS] Re: Custom directive elements as table elements

Hi Fritz,

Your <tr> and <td> elements will be wrapped inside a <treeRow> element. the 
<tbody> element only accepts <tr> as it's children. (Nothing angular, just 
plain HTML)
There are 2 solutions, the simplest is indeed switch to attribute directives.
the second way is to build your own compile function that takes out the 
originating HTML.
Don't use the replace property, that is deprecated!

Regards
Sander
--
You received this message because you are subscribed to a topic in the Google 
Groups "AngularJS" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/angular/LtCrn5-RoOk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

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