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.

Wrong order of rendered elements when using ng-repeat, ng-if, and a directive #14326

Open
@thatkookooguy

Description

@thatkookooguy

Note: for support questions, please use one of these channels: https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#question. This repository's issues are reserved for feature requests and bug reports.

Do you want to request a feature or report a bug?
BUG

What is the current behavior?
Order of rendered DOM is messed-up.

Currently, I get:

1
2
3
Printed twice, but should not
Printed twice, but should not
Printed twice, but should not

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (template: http://plnkr.co/edit/tpl:yBpEi4).
http://plnkr.co/edit/0KpEwgW8P2p00UfTYH6e?p=preview

What is the expected behavior?
The expected output should be:

1
Printed twice, but should not
2
Printed twice, but should not
3
Printed twice, but should not

What is the motivation / use case for changing the behavior?
This behaviour is confusing and isn't expected

Which versions of Angular, and which browser / OS are affected by this issue? Did this work in previous versions of Angular? Please also test with the latest stable and snapshot (https://code.angularjs.org/snapshot/) versions.
tried this on angular 1.4.7 up to 1.5.0. happens on all of them

Other information (e.g. stacktraces, related issues, suggestions how to fix)
This is probably related to #6006 .

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions