Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ngIf on directive replace true conflicts with ngIf on top element of directive #10235

Closed
frfancha opened this issue Nov 26, 2014 · 2 comments
Closed

Comments

@frfancha
Copy link

Plunker: http://plnkr.co/edit/dsOKuusM1D2PEs9qpHVi?p=preview
Basically, if you have:
myDirective ng-if="condition"
and in the directive (with replace true), as top element:
div ng-if="some other condition"
angular makes a mix between the ng-if and fails.
I would expect that the ng-if on myDirective is handled, and if true then myDirective is processed to replace the tag without collision.
Or perhaps is it just a not supported configuration?

@pkozlowski-opensource
Copy link
Member

I believe this is duplicate of #9837

@frfancha
Copy link
Author

Are you sure it is duplicate of #9837 ?
#9837 speaks of regression in 1.3 and this problem also occurs in, e.g., 1.2.4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants