-
Notifications
You must be signed in to change notification settings - Fork 248
Element attributes not mapped with NgAnnotation.TRANSCLUDE_CHILDREN #531
Comments
This whole template directive thing needs to be refactored. |
Hi Miško, |
Yes it will be refactored over the next month or so. |
May I ask what this |
@zoechi it maps the value of the element's attribute that matches the selector name, in this case "test-transclude", to a variable named "dot". It is a short cut for 'test-transclude': '=>dot' |
Thanks, each day something new!
|
Attributes declared in map of NgDirectives are ignored if 'children' is set as NgAnnotation.TRANSCLUDE_CHILDREN. E.g.:
Dart code:
HTML:
Wrong behaviour: only "set dot" is printed;
Expected behaviour: both the set functions should be called.
We wrote a directive that reproduce the NgDirective with transclusion behaviour available in AngularJS; however, we would like to be able to map multiple attributes exactly as in AngularJS. NgComponent is not a good alternative because it uses the shadow dom.
The text was updated successfully, but these errors were encountered: