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.

ng-repeat throws a 'isecdom' error when iterating over an array with a "on" property #4805

Closed
@andersekdahl

Description

@andersekdahl

Using AngularJS 1.2.0-rc3, the following throws the error "'Referencing DOM nodes in Angular expressions is disallowed!" in ensureSafeObject(). It seems to misinterpret the array as a DOM node because it has both a "find" and an "on" property.

Controller code:

var array = [1, 2, 3];
array.on = true;
$scope.array = array;

Template:

<li ng-repeat="el in array">{{el}}</li>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions