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.

Directive template: "[ng-show] > [ng-if] > [ng-transclude]" throws exception. Bug? #7240

Closed

Description

@Wizek

http://jsbin.com/pemadama/1

This should work without throwing the exception, right?

Activity

  1. rodyhaddad commented on Apr 25, 2014

    @rodyhaddad
    Contributor

    Check this comment for a workaround.

    Here's your jsbin with the workaround: http://jsbin.com/pemadama/2/edit

    hmm, I find it odd that ng-show plays a role in this

  2. Wizek commented on Apr 25, 2014

    @Wizek
    Author

    Thanks @rodyhaddad, that was helpful.

    I too have no idea why ng-show makes any difference.

    Do you think it makes sense to attach a failing unit-test-case to this issue as a pull request?

  3. petebacondarwin commented on Apr 28, 2014

    @petebacondarwin
    Contributor

    So the reason that ng-show makes a difference is that it adds a directive between the top level "compile" node and the ng-if. You can see that any directive that gets in the way will cause this problem...

    See http://jsbin.com/pemadama/6/edit

    I think this is actually some kind of bug, since clearly the outer transclude is sort of available it is just not passed through when the compiler hits a directive that also creates a transclude. I feel that somehow we ought to have a stack of transclusion functions that directives can un-peel as we go down through the compilation....

  4. added this to the 1.3.0-beta.8 milestone on Apr 28, 2014
  5. 13 remaining items

  6. added a commit that references this issue on May 16, 2014
    0d4d85f
  7. added a commit that references this issue on May 16, 2014
    1138506
  8. added a commit that references this issue on May 21, 2014
    e84f7bc
  9. rodyhaddad commented on May 21, 2014

    @rodyhaddad
    Contributor

    This should be re-opened as 4f03dc5 was reverted by e994259.
    Here's the original jsbin with the latest snapshot: http://jsbin.com/pemadama/12/edit

  10. added 3 commits that reference this issue on May 22, 2014
    7c98bb2
    e045b8b
    d48d129
  11. added a commit that references this issue on May 24, 2014
    0268069
  12. added 4 commits that reference this issue on May 28, 2014
    30ed428
    a4ac48f
    0641d76
    1fef5fe
  13. added a commit that references this issue on Jun 13, 2014
    09bfbd5
  14. added a commit that references this issue on Jun 13, 2014
    8df5f32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions