Skip to content
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
@Mushr0000m

Description

@Mushr0000m

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 !

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions