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

Using ng-if on a root element of a directive with replace: true creates a broken scope #9932

Closed
ctide opened this issue Nov 6, 2014 · 4 comments

Comments

@ctide
Copy link

ctide commented Nov 6, 2014

Defining a directive with replace: true and an ng-if on the root element of the template creates a broken scope underneath that element.

This fiddle should describe the behavior pretty clearly: http://jsfiddle.net/1op3L9yo/38/

@JGailor
Copy link

JGailor commented Nov 6, 2014

+1

@candreoliveira
Copy link

Access the parent scope: http://jsfiddle.net/6mzs0axL/2/

@caitp
Copy link
Contributor

caitp commented Nov 11, 2014

Another duplicate: #9837

@caitp
Copy link
Contributor

caitp commented Nov 11, 2014

@petebacondarwin is assigned to the other issue, I dunno how that's coming yet but lets just continue this over there.

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

No branches or pull requests

4 participants