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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions