Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

ng-repeat get corrupted when iterating over a null #1015

Closed
@trinarytree

Description

@trinarytree

to reproduce:
put this into a controller

dart code

@NgController(
    selector: '[foo-controller]',
    publishAs: 'ctrl')
class FooController {
  var foos = [1, 2];
  void clickFoo() {
    foos = foos == null ? [1, 2] : null;
  }
}

template code

<div foo-controller>
    <button ng-click="ctrl.clickFoo()">click me</button>
    {{ctrl.foos}}
    <div ng-repeat="foo in ctrl.foos">
      i'm a foo
    </div>
</div>

when you click on "click me" repeatedly, it will make the list shown on the page grow by 2 every other time.

Activity

chirayuk

chirayuk commented on May 8, 2014

@chirayuk
Contributor

I'll take this one.

added a commit that references this issue on May 8, 2014
e2ac3e0
added a commit that references this issue on May 8, 2014
46b4c0e
added a commit that references this issue on May 13, 2014
42b8d5f

16 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @chirayuk@trinarytree@chimney-sweeper

      Issue actions

        ng-repeat get corrupted when iterating over a null · Issue #1015 · dart-archive/angular.dart