--
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/_EcFXHkIm_c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
Why would you avoid `<my-directive></my-directive>` in the first place? It is valid HTML5.Then there is this. In a SPA, the DOM is just a part of the internal state of your application. Are you also worried on how your variables are represented in memory? Or on how your database looks if you open it using notepad?
<ul class = "parent">
<child-directive></child-directive>
</ul><li
class = "child"
[class.active]="isActive(item)"
(mouseenter)="activateItem(item)"
(click)="selectValue(item,$event)">
<a class = "label" >
{{label}}
<a>
<a class = "action1">X</a>
</li><ul class = "parent">
<li
class = "child"
child-directive
>
</li>
</ul>@HostListenerHi Ivan,
There is not, probably never will be a replacement for replace:true. The idea is nice, but the result will just be too unpredictable
The way to cater for such use-cases is as I described above a <ng-container ...></ng-container>, or, use a directive to add the functionality you need.
If you can showcase your issue in a stackblitz I will take a look and come up with a working solution.
Regards
Sander