This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ngif strange behavior on directive template #11855
Closed
Description
Hi,
I'm not sure it's an issue, but I think. Let me explain, when using ng-if in the template of a directive, and then in the link method trying to select the element the object return is empty, even if the element exists by passing the ng-if validation. Of course no problem if using ng-show.
An example here : http://plnkr.co/edit/8vBzoL640k3j7U3GW04T?p=preview
Try to modify the plunker by changing ng-if to ng-show and the element is logged in the console.
I hope it's just me missing something.
Thanks !